Share via


ProfileStereotypeExtensions.ApplyProfile Method

Applies the profile to package, so that the profile's stereotypes can be applied to the package's contents. Creates an IProfileInstance that represents the relationship between the profile and the package.

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ApplyProfile ( _
    package As IPackage, _
    profile As IProfile _
) As IProfileInstance
public static IProfileInstance ApplyProfile(
    this IPackage package,
    IProfile profile
)
[ExtensionAttribute]
public:
static IProfileInstance^ ApplyProfile(
    IPackage^ package, 
    IProfile^ profile
)
static member ApplyProfile : 
        package:IPackage * 
        profile:IProfile -> IProfileInstance 
public static function ApplyProfile(
    package : IPackage, 
    profile : IProfile
) : IProfileInstance

Parameters

Return Value

Type: Microsoft.VisualStudio.Uml.Classes.IProfileInstance
An IProfileInstance represents the link between a profile and a package to which it is applied.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPackage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ProfileStereotypeExtensions Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace