DirectXException Class

Language:

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

Definition

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

Members Table

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 Exception Leave 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

Object Leave Site
Exception Leave Site

Class Information

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

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

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center