Share via


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)

Syntax

public static IStereotypeInstance ApplyStereotype(
    this IElement element,
    IStereotype stereotype
)
public:
[ExtensionAttribute]
static IStereotypeInstance^ ApplyStereotype(
    IElement^ element,
    IStereotype^ stereotype
)
static member ApplyStereotype : 
        element:IElement *
        stereotype:IStereotype -> IStereotypeInstance
<ExtensionAttribute>
Public Shared Function ApplyStereotype (
    element As IElement,
    stereotype As IStereotype
) As IStereotypeInstance

Parameters

Return Value

Type: Microsoft.VisualStudio.Uml.Classes.IStereotypeInstance

An IStereotypeInstance represents the link between a stereotype and an element.

See Also

ProfileStereotypeExtensions Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace

Return to top