IDatabaseProjectNode.GetProjectPropertyAsBoolean 方法

Boolean 的形式返回项目属性的值。

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Project
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
Function GetProjectPropertyAsBoolean ( _
    propertyName As String, _
    resetCache As Boolean, _
    defaultValue As Boolean _
) As Boolean
bool GetProjectPropertyAsBoolean(
    string propertyName,
    bool resetCache,
    bool defaultValue
)
bool GetProjectPropertyAsBoolean(
    String^ propertyName, 
    bool resetCache, 
    bool defaultValue
)
abstract GetProjectPropertyAsBoolean : 
        propertyName:string * 
        resetCache:bool * 
        defaultValue:bool -> bool 
function GetProjectPropertyAsBoolean(
    propertyName : String, 
    resetCache : boolean, 
    defaultValue : boolean
) : boolean

参数

  • resetCache
    类型:System.Boolean
    true 表示重新处理 MSBuild 属性缓存。
  • defaultValue
    类型:System.Boolean
    如果字符串值为空或无效,则为布尔类型的默认值。

返回值

类型:System.Boolean
项目属性的当前值(Boolean 形式)。

.NET Framework 安全性

请参见

参考

IDatabaseProjectNode 接口

Microsoft.VisualStudio.Data.Schema.Package.Project 命名空间