ConstantTable.GetConstant Method

Language:

Retrieves a constant by looking up its index or by name.

Definition

Visual Basic Public Function GetConstant( _
    ByVal constant As EffectHandle, _
    ByVal name As String _
) As EffectHandle
C# public EffectHandle GetConstant(
    EffectHandle constant,
    string name
);
C++ public:
EffectHandleGetConstant(
    EffectHandleconstant,
    Stringname
);
JScript public function GetConstant(
    constant : EffectHandle,
    name : String
) : EffectHandle;

Parameters

constant Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle that serves as a unique identifier to the parent data structure. If the constant is a top-level parameter (that is, if there is no parent data structure), use 0.
name System.String
Name of the constant.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle class that represents the constant.


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