This documentation is archived and is not being maintained.

Templatizations Property

Visual Studio .NET 2003

Returns a collection of template parameters for the parent object.

[Visual Basic .NET]
Public ReadOnly Property Templatizations() As CodeElements
[Visual Basic 6]
Property Get Templatizations() As CodeElements
HRESULT __stdcall get_Templatizations(
   /* [out, retval] */ CodeElements** retVal
public CodeElements Templatizations {get;}
[JScript .NET]
public function get Templatizations() : CodeElements


This example adds a template class and then displays the name of the template parameters.

Sub DisplayTemplateParameters()
    Dim vcCM As VCCodeModel
    Dim vcClass As VCCodeClass
    vcCM = DTE.Solution.Item(1).CodeModel
    vcClass = vcCM.AddClass("MyTemplateClass", "MyTemplateClass.h")
    vcClass.StartPoint().CreateEditPoint().Insert("template <class T, class F> ")
    Dim codeElement As VCCodeElement
    For Each codeElement In vcClass.Templatizations
End Sub

See Visual C++ Code Model Samples for information on how to compile and run this sample.

See Also

Applies To: VCCodeClass Object | VCCodeFunction Object | VCCodeStruct Object | VCCodeUnion Object