RunInstallerAttribute.Yes 字段

指定在安装程序集时应调用 Visual Studio 自定义操作安装程序或安装程序工具 (Installutil.exe)。此 static 字段是只读的。

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
Public Shared ReadOnly Yes As RunInstallerAttribute
用法
Dim value As RunInstallerAttribute

value = RunInstallerAttribute.Yes
public static readonly RunInstallerAttribute Yes
public:
static initonly RunInstallerAttribute^ Yes
public static final RunInstallerAttribute Yes
public static final var Yes : RunInstallerAttribute

备注

当使用设置为 trueRunInstallerAttribute 标记某个属性 (Property) 时,此属性 (Attribute) 的值会被设置为常数成员 Yes。因此,若要检查属性在代码中是否设置为该值,必须将该属性指定为 RunInstallerAttribute.Yes

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

RunInstallerAttribute 类
RunInstallerAttribute 成员
System.ComponentModel 命名空间