DatabaseProjectConfigurationExtender.GetConfigurationPropertyAsBool 方法
嘗試以 Boolean 形式取得組態屬性。
命名空間: Microsoft.VisualStudio.Data.Schema.Package.Project
組件: Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
語法
'宣告
Protected Function GetConfigurationPropertyAsBool ( _
propertyName As String, _
defaultValue As Boolean _
) As Boolean
protected bool GetConfigurationPropertyAsBool(
string propertyName,
bool defaultValue
)
protected:
bool GetConfigurationPropertyAsBool(
String^ propertyName,
bool defaultValue
)
member GetConfigurationPropertyAsBool :
propertyName:string *
defaultValue:bool -> bool
protected function GetConfigurationPropertyAsBool(
propertyName : String,
defaultValue : boolean
) : boolean
參數
- propertyName
型別:System.String
屬性的名稱。
- defaultValue
型別:System.Boolean
屬性值無法轉換為布林值時所傳回的值
傳回值
型別:System.Boolean
屬性的值。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。