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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。