共用方式為


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

參數

  • defaultValue
    型別:System.Boolean
    屬性值無法轉換為布林值時所傳回的值

傳回值

型別:System.Boolean
屬性的值。

.NET Framework 安全性

請參閱

參考

DatabaseProjectConfigurationExtender 類別

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