共用方式為


InstalledProductRegistrationAttribute.UseVsProductId Property

Determines whether the product ID is the same as the Visual Studio ID.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public ReadOnly Property UseVsProductId As Boolean
public bool UseVsProductId { get; }

Property Value

Type: System.Boolean
true if the product ID is the same as the Visual Studio ID, otherwise false.

Remarks

This is reserved for Microsoft internal use. Third party packages should provide their own product ID when the class is constructed.

.NET Framework Security

See Also

Reference

InstalledProductRegistrationAttribute Class

Microsoft.VisualStudio.Shell Namespace