MsiComponentIdAttribute Constructor

This constructor creates a new MsiComponentIdAttribute object.

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

Syntax

声明
Public Sub New ( _
    id As String _
)
用法
Dim id As String

Dim instance As New MsiComponentIdAttribute(id)
public MsiComponentIdAttribute(
    string id
)
public:
MsiComponentIdAttribute(
    String^ id
)
new : 
        id:string -> MsiComponentIdAttribute
public function MsiComponentIdAttribute(
    id : String
)

Parameters

  • id
    Type: System.String
    The Windows Installer component ID. The MSI component registration ID is used to indicate the installation path to the component within the Windows Installer.

Remarks

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 MsiComponentId.

.NET Framework Security

See Also

Reference

MsiComponentIdAttribute Class

MsiComponentIdAttribute Members

Microsoft.VisualStudio.Shell Namespace