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

PI Powershell

AddPIDigitalStateToStateSet.InsertAtIndex Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
AddPIDigitalStateToStateSet.InsertAtIndex Property

Index at which the new PI Digital State should be added

If InsertAtIndex is not specified, then the states are appended to the end of the PI Digital State Set

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

Syntax

[ParameterAttribute(Position = 2, Mandatory = false, HelpMessage = "Insert new digital states at")]
[ValidateNotNullOrEmptyAttribute]
public int InsertAtIndex { get; set; }
<ParameterAttribute(Position := 2, Mandatory := false, HelpMessage := "Insert new digital states at")>
<ValidateNotNullOrEmptyAttribute>
Public Property InsertAtIndex As Integer
	Get
	Set

Dim instance As AddPIDigitalStateToStateSet
Dim value As Integer

value = instance.InsertAtIndex

instance.InsertAtIndex = value
public:
[ParameterAttribute(Position = 2, Mandatory = false, HelpMessage = L"Insert new digital states at")]
[ValidateNotNullOrEmptyAttribute]
property int InsertAtIndex {
	int get ();
	void set (int value);
}
[<ParameterAttribute(Position = 2, Mandatory = false, HelpMessage = "Insert new digital states at")>]
[<ValidateNotNullOrEmptyAttribute>]
member InsertAtIndex : int with get, set

Property Value

Type: Int32

See Also

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