共用方式為


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 命名空間