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.Internal
Assembly:  Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)

Syntax

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

returnValue = instance.GetConfigurationPropertyAsBool(propertyName, _
    defaultValue)
public bool GetConfigurationPropertyAsBool(
    string propertyName,
    bool defaultValue
)
public:
virtual bool GetConfigurationPropertyAsBool(
    String^ propertyName, 
    bool defaultValue
) sealed
abstract GetConfigurationPropertyAsBool : 
        propertyName:string * 
        defaultValue:bool -> bool 
override GetConfigurationPropertyAsBool : 
        propertyName:string * 
        defaultValue:bool -> bool 
public final function GetConfigurationPropertyAsBool(
    propertyName : String, 
    defaultValue : boolean
) : boolean

Parameters

Return Value

Type: System..::..Boolean

See Also

Reference

ProjectConfig Class

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