Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetAFAttributeTemplate.Index Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
GetAFAttributeTemplate.Index Property

Index of the AF Attribute Template to get

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = "ElementIndex", HelpMessage = "AF Attribute Template Index")]
[ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = "AttributeIndex", HelpMessage = "AF Attribute Template Index")]
[ValidateNotNullOrEmptyAttribute]
public int Index { get; set; }
<ParameterAttribute(Position := 0, Mandatory := true, ValueFromPipeline := false, 
	ParameterSetName := "ElementIndex", HelpMessage := "AF Attribute Template Index")>
<ParameterAttribute(Position := 0, Mandatory := true, ValueFromPipeline := false, 
	ParameterSetName := "AttributeIndex", HelpMessage := "AF Attribute Template Index")>
<ValidateNotNullOrEmptyAttribute>
Public Property Index As Integer
	Get
	Set

Dim instance As GetAFAttributeTemplate
Dim value As Integer

value = instance.Index

instance.Index = value
public:
[ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = L"ElementIndex", HelpMessage = L"AF Attribute Template Index")]
[ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = L"AttributeIndex", HelpMessage = L"AF Attribute Template Index")]
[ValidateNotNullOrEmptyAttribute]
property int Index {
	int get ();
	void set (int value);
}
[<ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = "ElementIndex", HelpMessage = "AF Attribute Template Index")>]
[<ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = "AttributeIndex", HelpMessage = "AF Attribute Template Index")>]
[<ValidateNotNullOrEmptyAttribute>]
member Index : int with get, set

Property Value

Type: Int32

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in