DatabaseProjectNodeExtender.GetDefaultValueAsBool 方法
以 Boolean 形式從資料庫工作主機傳回預設值。
命名空間: Microsoft.VisualStudio.Data.Schema.Package.Project
組件: Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
語法
'宣告
Public Function GetDefaultValueAsBool ( _
propertyName As String, _
source As DatabaseTaskHost..::..PropertySource _
) As Boolean
public bool GetDefaultValueAsBool(
string propertyName,
DatabaseTaskHost..::..PropertySource source
)
public:
bool GetDefaultValueAsBool(
String^ propertyName,
DatabaseTaskHost..::..PropertySource source
)
member GetDefaultValueAsBool :
propertyName:string *
source:DatabaseTaskHost..::..PropertySource -> bool
public function GetDefaultValueAsBool(
propertyName : String,
source : DatabaseTaskHost..::..PropertySource
) : boolean
參數
- propertyName
型別:System.String
屬性的名稱。
- source
型別:Microsoft.Data.Schema.Build.DatabaseTaskHost.PropertySource
屬性的來源。
傳回值
型別:System.Boolean
這個屬性的預設值 (布林值形式)。
備註
如果工作主機沒有預設值,則會傳回 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。