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 UpdatedJan 12, 2026
  • 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.2.0.7

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