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

PI Powershell

GetAFServer.Index Property

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

Index of the AF Server to get from the local AF Servers list. The indexing is zero-based.

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

Dim instance As GetAFServer
Dim value As Integer

value = instance.Index

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