ProfileStereotypeExtensions::ApplyStereotype Method (IElement^, IStereotype^)
Visual Studio 2015
Applies the stereotype to element. Creates an IStereotypeInstance that represents the extension of the model element by the stereotype.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
public: [ExtensionAttribute] static IStereotypeInstance^ ApplyStereotype( IElement^ element, IStereotype^ stereotype )
Parameters
- element
- Type: Microsoft.VisualStudio.Uml.Classes::IElement^
- stereotype
-
Type:
Microsoft.VisualStudio.Uml.Profiles::IStereotype^
The stereotype to be applied.
Return Value
Type: Microsoft.VisualStudio.Uml.Classes::IStereotypeInstance^An IStereotypeInstance represents the link between a stereotype and an element.
Show: