ModelElementExtensionMethods::GetExtension Method (ModelElement^, Type^)
Visual Studio 2015
Get the ExtensionElement of the specified type from the available extensions of this 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: [ExtensionAttribute] static ExtensionElement^ GetExtension( ModelElement^ element, Type^ extensionType )
Parameters
- element
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The extended ModelElement
- extensionType
-
Type:
System::Type^
The type of ExtensionElement to retrieve
Return Value
Type: Microsoft.VisualStudio.Modeling::ExtensionElement^The ExtensionElement of the requested type
Show: