Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- element
Type: Microsoft.VisualStudio.Uml.Classes.IElement
stereotype
Type: Microsoft.VisualStudio.Uml.Profiles.IStereotypeThe stereotype to be applied.
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