ProvideLoadKeyAttribute.RegKeyName Method
Returns the registry key name for this package's load key information.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Public Function RegKeyName ( _
context As RegistrationAttribute.RegistrationContext _
) As String
public string RegKeyName(
RegistrationAttribute.RegistrationContext context
)
Parameters
- context
Type: Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext
A registration context provided by an external registration tool. The context can be used to create registry keys, log registration activity, and obtain information about the component being registered.
Return Value
Type: System.String
The Registry Key name for the load key information of the VSPackage.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.