Share via


Effect.Disassemble(Effect,Boolean) Method (Microsoft.DirectX.Direct3D)

Disassembles an effect.

Definition

Visual Basic Public Shared Function Disassemble( _
    ByVal effect As Effect, _
    ByVal enableColorCode As Boolean _
) As String
C# public static string Disassemble(
    Effect effect,
    bool enableColorCode
);
C++ public:
static StringLeave SiteDisassemble(
    Effecteffect,
    bool enableColorCode
);
JScript public static function Disassemble(
    effect : Effect,
    enableColorCode : boolean
) : String;

Parameters

effect Microsoft.DirectX.Direct3D.Effect
An Effect object that contains the effect to disassemble.
enableColorCode System.Boolean
Set to true to enable color coding to make the disassembly easier to read. Set to false for no color coding.

Return Value

System.String
A string that contains the disassembled effect.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

InvalidDataException

The data is invalid.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.