Microsoft DirectX 9.0 SDK Update (October 2004)

DirectXException Class

Language:

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

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

Definition

Visual Basic .NET Public Class DirectXException
   Inherits ApplicationException 
C# public class DirectXException : ApplicationException
Managed C++ public __gc class DirectXException  : public ApplicationException
JScript .NET public class DirectXException extends ApplicationException

Members Table

Field Description
static (Shared in Visual Basic .NET) 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 .NET) EnableExceptions Enables DirectX 9.0 for Managed Code exception throwing.
static (Shared in Visual Basic .NET) GetDirectXErrorString Retrieves a string that contains the name of the DirectX error code.
static (Shared in Visual Basic .NET) GetExceptionFromResultInternal Retrieves the Exception Leave Site object associated with the resultCode passed in.
static (Shared in Visual Basic .NET) 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 .NET) 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.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

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

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