Freigeben über


IDatabaseProjectPropertiesContainer.GetPropertyAsBoolean-Methode

Gibt den Standardwert einer Katalog- oder Servereigenschaft als Boolean zurück.

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

Parameter

  • defaultValue
    Typ: System.Boolean
    Der Standardwert, wenn die Eigenschaft nicht festgelegt ist.

Rückgabewert

Typ: System.Boolean
true , wenn die Eigenschaft abgerufen wurde.

.NET Framework-Sicherheit

Siehe auch

Referenz

IDatabaseProjectPropertiesContainer Schnittstelle

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