ProfileStereotypeExtensions::ApplyStereotype Method (IElement^, IStereotype^)

 

Applies the stereotype to element. Creates an IStereotypeInstance that represents the extension of the model element by the stereotype.

Namespace:   Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
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.

Return to top
Show: