MsiComponentIdAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义 Windows Installer 组件 ID。 Windows Installer 使用组件 ID 指示 VSPackage 的安装路径。
public ref class MsiComponentIdAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class MsiComponentIdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type MsiComponentIdAttribute = class
inherit Attribute
Public NotInheritable Class MsiComponentIdAttribute
Inherits Attribute
- 继承
-
MsiComponentIdAttribute
- 属性
注解
何时调用
Package IVsPackage 当使用 Windows Installer 安装 VSPackage 时,将此特性应用于派生的类或实现的类。
基本用法
MsiComponentIdAttribute 定义 Microsoft Windows Installer 组件 ID。 Windows Installer 使用组件 ID 指示组件的安装路径。
此特性类只用于提供外部注册工具(如 regpkg.exe)的数据。 它对 VSPackage 的运行时行为没有任何影响。 有关详细信息,请参阅 注册 vspackage。
备注
Visual C# 自动将 "属性" 一词追加到任何 Attribute 类的名称中。 在 Visual C# 代码中,请将此属性称为 MsiComponentId 。
构造函数
| MsiComponentIdAttribute(String) |
此构造函数将创建一个新的 MsiComponentIdAttribute 对象。 |
属性
| Id |
Id 属性返回一个,该字符串 |