DirectXException.LastError Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves the error status for the last operation that failed.

Definition

Visual Basic .NET Public Shared  ReadOnly Property LastError As Integer
C# public static int LastError { get; }
Managed C++ public: __property static int get_LastError();
JScript .NET 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

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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