Share via


SecurityWin32Util.CheckAPIException Method

Checks if an error occurred with the last Win32 call and if so, throws an exception by using the message from the message source for that error.

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public Shared Function CheckAPIException ( _
    ErrorCode As Integer _
) As Boolean
'Usage
Dim ErrorCode As Integer
Dim returnValue As Boolean

returnValue = SecurityWin32Util.CheckAPIException(ErrorCode)
public static bool CheckAPIException(
    int ErrorCode
)

Parameters

  • ErrorCode
    Type: System.Int32
    The code for that particular error.

Return Value

Type: System.Boolean
If true, errors occurred; otherwise, false.

See Also

Reference

SecurityWin32Util Class

SecurityWin32Util Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security Namespace