共用方式為


IDatabaseProjectPropertiesContainer.GetPropertyAsBoolean 方法

Boolean 形式傳回目錄或伺服器屬性的值。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.Project
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Function GetPropertyAsBoolean ( _
    propertyName As String, _
    source As DatabaseTaskHost..::..PropertySource, _
    defaultValue As Boolean _
) As Boolean
bool GetPropertyAsBoolean(
    string propertyName,
    DatabaseTaskHost..::..PropertySource source,
    bool defaultValue
)
bool GetPropertyAsBoolean(
    String^ propertyName, 
    DatabaseTaskHost..::..PropertySource source, 
    bool defaultValue
)
abstract GetPropertyAsBoolean : 
        propertyName:string * 
        source:DatabaseTaskHost..::..PropertySource * 
        defaultValue:bool -> bool 
function GetPropertyAsBoolean(
    propertyName : String, 
    source : DatabaseTaskHost..::..PropertySource, 
    defaultValue : boolean
) : boolean

參數

  • defaultValue
    型別:System.Boolean
    如果未設定屬性則為預設值。

傳回值

型別:System.Boolean
如果已擷取屬性則為 true。

.NET Framework 安全性

請參閱

參考

IDatabaseProjectPropertiesContainer 介面

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