VCCustomBuildRule.AddBooleanProperty 方法

用给定的名称将布尔值属性添加到自定义生成规则。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
Function AddBooleanProperty ( _
    Name As String _
) As VCRuntimeBooleanProperty
VCRuntimeBooleanProperty AddBooleanProperty(
    string Name
)
VCRuntimeBooleanProperty^ AddBooleanProperty(
    [InAttribute] String^ Name
)
abstract AddBooleanProperty : 
        Name:string -> VCRuntimeBooleanProperty
function AddBooleanProperty(
    Name : String
) : VCRuntimeBooleanProperty

参数

  • Name
    类型:String

    新 Boolean 属性的名称。

返回值

类型:Microsoft.VisualStudio.VCProjectEngine.VCRuntimeBooleanProperty
一个 VCRuntimeBooleanProperty 对象。

备注

返回新的布尔属性。

.NET Framework 安全性

请参阅

参考

VCCustomBuildRule 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间