Share via


IDatabaseProjectPropertiesContainer.GetPropertyAsBoolean Method

Returns the value of a catalog or server property as a Boolean.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Project
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
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

Parameters

  • defaultValue
    Type: System.Boolean
    The default value, if the property is not set.

Return Value

Type: System.Boolean
true if the property was retrieved.

.NET Framework Security

See Also

Reference

IDatabaseProjectPropertiesContainer Interface

Microsoft.VisualStudio.Data.Schema.Package.Project Namespace