Share via


BaseEffect.GetAnnotation(EffectHandle,String) Method (Microsoft.DirectX.Direct3D)

Retrieves an annotation.

Definition

Visual Basic Public Function GetAnnotation( _
    ByVal technique As EffectHandle, _
    ByVal name As String _
) As EffectHandle
C# public EffectHandle GetAnnotation(
    EffectHandle technique,
    string name
);
C++ public:
EffectHandleGetAnnotation(
    EffectHandletechnique,
    StringLeave Sitename
);
JScript public function GetAnnotation(
    technique : EffectHandle,
    name : String
) : EffectHandle;

Parameters

technique Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle object that represents a technique, pass, or top-level parameter.
name System.String
Annotation name.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle
A EffectHandle object that specifies the annotation, or null if the annotation is not found.

Remarks

Annotations are user-specific data that can be attached to any technique, pass, or parameter.

Applies To

Effect, EffectCompiler