DirectXException.LastError Property (Microsoft.DirectX)

Retrieves the error status for the last operation that failed.


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

Integer that represents the last error code.

This property is read-only. 


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