DirectXException.GetDirectXErrorString(Int32) Method (Microsoft.DirectX)

Retrieves a string that contains the name of the Microsoft DirectX error code.


Visual Basic Public Shared Function GetDirectXErrorString( _
    ByVal errorCode As Integer _
) As String
C# public static string GetDirectXErrorString(
    int errorCode
C++ public:
static StringLeave SiteGetDirectXErrorString(
    int errorCode
JScript public static function GetDirectXErrorString(
    errorCode : int
) : String;


errorCode System.Int32
Result code of the failed method that caused this exception.

Return Value

A string that contains the name of the error code.

Applies To

Direct3DXException, DirectPlayException, GraphicsException, GraphicsException, InputException, SoundException