ProvideLoadKeyAttribute.RegKeyName Method

Definition

Registry Key name for this package's load key information.

public:
 System::String ^ RegKeyName(Microsoft::VisualStudio::Shell::RegistrationAttribute::RegistrationContext ^ context);
std::wstring RegKeyName(Microsoft::VisualStudio::Shell::RegistrationAttribute::RegistrationContext const & context);
public string RegKeyName (Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext context);
member this.RegKeyName : Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext -> string
Public Function RegKeyName (context As RegistrationAttribute.RegistrationContext) As String

Parameters

Returns

Remarks

Important

Packages that target Visual Studio 2010 only do not need a package load key.

Packages that target Visual Studio 2008 and earlier must have a package load key in order to validate and load VSPackages. This includes VSPackages provided by third parties, regardless of whether the hosting version of Visual Studio has a VSIP license.

This output is formatted with "Packages\\GUID", for instance:

Packages\\C251EB20-B76C-4ece-91BE-7A25E6B02BD4  

The Visual C# language automatically appends the word "Attribute" to the name of any attribute class. In Visual C# code, refer to this attribute as ProvideLoadKey.

Applies to