共用方式為


InstalledProductRegistrationAttribute.UsePackage Property

Gets or sets whether the product installation uses the package ID.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

'宣告
Public ReadOnly Property UsePackage As Boolean
    Get
'用途
Dim instance As InstalledProductRegistrationAttribute
Dim value As Boolean

value = instance.UsePackage
public bool UsePackage { get; }
public:
property bool UsePackage {
    bool get ();
}
member UsePackage : bool
function get UsePackage () : boolean

Property Value

Type: System.Boolean
The value is true if the product installation uses the package ID, and false otherwise.

.NET Framework Security

See Also

Reference

InstalledProductRegistrationAttribute Class

InstalledProductRegistrationAttribute Members

Microsoft.VisualStudio.Shell Namespace

Other Resources

Localized Resources in MFC Applications: Satellite DLLs