DirectXException Class (Microsoft.DirectX)

Describes the root exception class for all Microsoft DirectX 9.0 for Managed Code exceptions.


Visual Basic Public Class DirectXException
    Inherits ApplicationExceptionLeave Site
C# public class DirectXException : ApplicationExceptionLeave Site
C++ public ref class DirectXException : ApplicationExceptionLeave Site
JScript public class DirectXException extends ApplicationExceptionLeave Site

Members Table

The following table lists the members exposed by the object.


Field Description
static (Shared in Visual Basic) IsExceptionIgnored Specifies whether DirectX 9.0 for Managed Code exceptions are enabled or disabled.


Method Description
DirectXException Initializes a new instance of the DirectXException class.
static (Shared in Visual Basic) EnableExceptions Enables DirectX 9.0 for Managed Code exception throwing.
static (Shared in Visual Basic) GetDirectXErrorString Retrieves a string that contains the name of the DirectX error code.
static (Shared in Visual Basic) GetExceptionFromResultInternal Retrieves the ExceptionLeave Site object associated with the resultCode passed in.
static (Shared in Visual Basic) IgnoreExceptions Disables DirectX 9.0 for Managed Code exception throwing.
ToString Obtains the string representation of the current instance.


Property Description
ErrorCode Retrieves or sets the integer value result code.
ErrorString Retrieves the error string that is specific to DirectX 9.0 for Managed Code.
static (Shared in Visual Basic) LastError Retrieves the error status for the last operation that failed.

Inheritance Hierarchy

Class Information

Namespace Microsoft.DirectX
Assembly Microsoft.DirectX (microsoft.directx.dll)
Strong Name Microsoft.DirectX,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492