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
參數
- propertyName
型別:System.String
屬性的名稱。
- resetCache
型別:System.Boolean
true 表示要重新處理 MSBuild 屬性快取。
- defaultValue
型別:System.Boolean
字串值是空的或無效時的預設布林值。
傳回值
型別:System.Boolean
專案屬性的目前值 (Boolean 形式)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。