RunInstallerAttribute.Yes 字段

定义

指定在安装程序集时应调用 Visual Studio 自定义操作安装程序或 Installutil.exe (安装程序工具)Specifies that the Visual Studio Custom Action Installer or the Installutil.exe (Installer Tool) should be invoked when the assembly is installed. static 字段是只读的。This static field is read-only.

public: static initonly System::ComponentModel::RunInstallerAttribute ^ Yes;
public static readonly System.ComponentModel.RunInstallerAttribute Yes;
 staticval mutable Yes : System.ComponentModel.RunInstallerAttribute
Public Shared ReadOnly Yes As RunInstallerAttribute 

字段值

RunInstallerAttribute

注解

当您使用设置为的将属性标记为时 RunInstallerAttribute true ,此属性的值将设置为常量成员 YesWhen you mark a property with the RunInstallerAttribute set to true, the value of this attribute is set to the constant member Yes. 因此,当您要检查您的代码中是否将该属性设置为此值时,您必须将属性指定为 RunInstallerAttribute.YesTherefore, when you want to check whether the attribute is set to this value in your code, you must specify the attribute as RunInstallerAttribute.Yes.

适用于