ModelElement::AddExtension Method

 
Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddExtension(ModelElement^, DomainClassInfo^)

Extend the specified ModelElement with a newly instantiated extension of the specified domain type. An InvalidOperationException will be thrown if the element already has an extension of the same type.

System_CAPS_pubmethodSystem_CAPS_staticAddExtension(ModelElement^, ExtensionElement^)

Extend the specified ModelElement with a specified extension. An InvalidOperationException will be thrown if the element already has an extension of the same type.

System_CAPS_pubmethodSystem_CAPS_staticAddExtension(ModelElement^, Guid)

Extend the specified ModelElement with a newly instantiated extension of the identified domain type. An InvalidOperationException will be thrown if the element already has an extension of the same type.

System_CAPS_pubmethodSystem_CAPS_staticAddExtension(ModelElement^, Type^)

Extend the specified ModelElement with a newly instantiated extension of the specified type. An InvalidOperationException will be thrown if the element already has an extension of the same type.

System_CAPS_pubmethodSystem_CAPS_staticAddExtension<T>(ModelElement^)

Extend the specified ModelElement with a newly instantiated extension of a particular type. An InvalidOperationException will be thrown if the element already has an extension of the same type.

Return to top
Show: