ProvideLoadKeyAttribute.ProductName Property
Gets the name of your VSPackage.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'Déclaration
Public ReadOnly Property ProductName As String
Get
'Utilisation
Dim instance As ProvideLoadKeyAttribute
Dim value As String
value = instance.ProductName
public string ProductName { get; }
public:
property String^ ProductName {
String^ get ();
}
member ProductName : string
function get ProductName () : String
Property Value
Type: System.String
The name of your 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.
ProductName is the name of the product that this VSPackage delivers. If a product is comprised of multiple VSPackages, each package needs its own Package Load Key (PLK).
.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.