ModelElementExtensionMethods::TryGetExtension<T> Method (ModelElement^)
Visual Studio 2015
Get the ExtensionElement of the specified type from the available extensions of this ModelElement. If this element has no such extension then the result will be null.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
public: generic<typename T> where T : ExtensionElement [ExtensionAttribute] static T TryGetExtension( ModelElement^ element )
Parameters
- element
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The extended ModelElement
Return Value
Type: TThe ExtensionElement of the requested type, or null if the element has no such extension
Type Parameters
- T
The type of ExtensionElement to retrieve
Show: