Share via


GetConfigurationPropertyAsBool Method

Try to get the configuration property as a bool. If it fails to parse return 'defaultValue'.

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

Syntax

'Declaration
Protected Function GetConfigurationPropertyAsBool ( _
    propertyName As String, _
    defaultValue As Boolean _
) As Boolean
'Usage
Dim propertyName As String
Dim defaultValue As Boolean
Dim returnValue As Boolean

returnValue = Me.GetConfigurationPropertyAsBool(propertyName, _
    defaultValue)
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

Parameters

Return Value

Type: System..::..Boolean
The value of the property

See Also

Reference

DatabaseProjectConfigurationExtender Class

Microsoft.VisualStudio.Data.Tools.Package.Project Namespace