ModelElement::GetExtension<T> Method (ModelElement^)
Visual Studio 2015
Get the ExtensionElement of the specified type from the available extensions of the specified ModelElement. If the element has no such extension then an InvalidOperationException will be raised.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
public: generic<typename T> where T : ExtensionElement static T GetExtension( ModelElement^ element )
Parameters
- element
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The extended ModelElement
Return Value
Type: TType Parameters
- T
The type of ExtensionElement to retrieve
Show: