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
參數
- propertyName
型別:System.String
屬性的名稱。
- source
型別:Microsoft.Data.Schema.Build.DatabaseTaskHost.PropertySource
屬性來源 (目錄或伺服器)。
- defaultValue
型別:System.Boolean
如果未設定屬性則為預設值。
傳回值
型別:System.Boolean
如果已擷取屬性則為 true。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。