该构造函数创建新的 MsiComponentIdAttribute 对象。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Public Sub New ( _
id As String _
)
public MsiComponentIdAttribute(
string id
)
参数
- id
类型:System.String
Windows Installer 组件 ID.MSI 组件寄存器 ID 用于指示安装路径添加到 Windows Installer 的元素中。
备注
Visual C# 语言自动追加单词 “属性”对任何特性类的名称。在 Visual C# 代码,请参见此属性作为 MsiComponentId。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。