Share via


DirectXException.LastError Property (Microsoft.DirectX)

Retrieves the error status for the last operation that failed.

Definition

Visual Basic Public Shared  ReadOnly Property LastError As Integer
C# public static int LastError { get; }
C++ public:
static property int LastError {
        int get();
}
JScript public static  function get LastError() : int

Property Value

System.Int32
Integer that represents the last error code.

This property is read-only. 

Remarks

LastError should be called immediately if a method fails, otherwise a subsequent method call may overwrite the last error code.

Applies To

Direct3DXException, DirectPlayException, GraphicsException, GraphicsException, InputException, SoundException