ProfileStereotypeExtensions.ApplyProfile Method (IPackage, IProfile)

 

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

public static IProfileInstance ApplyProfile(
    this IPackage package,
    IProfile profile
)
public:
[ExtensionAttribute]
static IProfileInstance^ ApplyProfile(
    IPackage^ package,
    IProfile^ profile
)
static member ApplyProfile : 
        package:IPackage *
        profile:IProfile -> IProfileInstance
<ExtensionAttribute>
Public Shared Function ApplyProfile (
    package As IPackage,
    profile As IProfile
) As 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.

See Also

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

Return to top