ModelElementExtensionMethods::AddExtension Method

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddExtension(ModelElement^, DomainClassInfo^)

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

System_CAPS_pubmethodSystem_CAPS_staticAddExtension(ModelElement^, ExtensionElement^)

Extend this ModelElement with a specific 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 this ModelElement with newly instantiated extension of the identified domain type. An InvalidOperationException will be thrown if the element already has an extension of that type.

System_CAPS_pubmethodSystem_CAPS_staticAddExtension(ModelElement^, Type^)

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

System_CAPS_pubmethodSystem_CAPS_staticAddExtension<T>(ModelElement^)

Extend this 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: