ProfileStereotypeExtensions::ApplyProfile Method (IPackage^, IProfile^)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
public: [ExtensionAttribute] static IProfileInstance^ ApplyProfile( IPackage^ package, IProfile^ profile )
Parameters
- package
- Type: Microsoft.VisualStudio.Uml.Classes::IPackage^
- profile
-
Type:
Microsoft.VisualStudio.Uml.Profiles::IProfile^
The profile that is to be made available in this package.
Return Value
Type: Microsoft.VisualStudio.Uml.Classes::IProfileInstance^An IProfileInstance represents the link between a profile and a package to which it is applied.
Show: