DirectXException.LastError Property

Language:

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

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.