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

PI Powershell

GetAFAttribute.Index Property

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

Index of AF Attribute 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 = false, ParameterSetName = "ElementIndex", 
	HelpMessage = "Name of AF Attribute")]
[ParameterAttribute(Position = 0, Mandatory = false, ParameterSetName = "AttributeIndex", 
	HelpMessage = "Name of AF Attribute")]
[ValidateNotNullOrEmptyAttribute]
public int Index { get; set; }
<ParameterAttribute(Position := 0, Mandatory := false, ParameterSetName := "ElementIndex", 
	HelpMessage := "Name of AF Attribute")>
<ParameterAttribute(Position := 0, Mandatory := false, ParameterSetName := "AttributeIndex", 
	HelpMessage := "Name of AF Attribute")>
<ValidateNotNullOrEmptyAttribute>
Public Property Index As Integer
	Get
	Set

Dim instance As GetAFAttribute
Dim value As Integer

value = instance.Index

instance.Index = value
public:
[ParameterAttribute(Position = 0, Mandatory = false, ParameterSetName = L"ElementIndex", 
	HelpMessage = L"Name of AF Attribute")]
[ParameterAttribute(Position = 0, Mandatory = false, ParameterSetName = L"AttributeIndex", 
	HelpMessage = L"Name of AF Attribute")]
[ValidateNotNullOrEmptyAttribute]
property int Index {
	int get ();
	void set (int value);
}
[<ParameterAttribute(Position = 0, Mandatory = false, ParameterSetName = "ElementIndex", 
	HelpMessage = "Name of AF Attribute")>]
[<ParameterAttribute(Position = 0, Mandatory = false, ParameterSetName = "AttributeIndex", 
	HelpMessage = "Name of AF Attribute")>]
[<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