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 命名空间