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

AF SDK Reference

PIException.StatusCode Property

  • Last UpdatedNov 18, 2025
  • 1 minute read
PIException.StatusCode Property
The status code indicating the cause of the current exception that was returned from the PIServer.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public int StatusCode { get; }
Public ReadOnly Property StatusCode As Integer
	Get

Dim instance As PIException
Dim value As Integer

value = instance.StatusCode
public:
property int StatusCode {
	int get ();
}
member StatusCode : int with get

Property Value

Type: Int32
Returns the status code indicating the cause of the current exception that was returned from the PIServer.

Version Information

AFSDK


See Also

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