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

PI Powershell

GetAFElement.Index Property

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

Index of the AF Element to get

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = "DatabaseIndex", 
	HelpMessage = "Name of AF Element")]
[ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = "ElementIndex", 
	HelpMessage = "Name of AF Element")]
[ValidateNotNullOrEmptyAttribute]
public int Index { get; set; }
<ParameterAttribute(Position := 0, Mandatory := true, ParameterSetName := "DatabaseIndex", 
	HelpMessage := "Name of AF Element")>
<ParameterAttribute(Position := 0, Mandatory := true, ParameterSetName := "ElementIndex", 
	HelpMessage := "Name of AF Element")>
<ValidateNotNullOrEmptyAttribute>
Public Property Index As Integer
	Get
	Set

Dim instance As GetAFElement
Dim value As Integer

value = instance.Index

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