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
- propertyName
Type: System..::..String
The name of the property
- defaultValue
Type: System..::..Boolean
The default value for this property if not found.
Return Value
Type: System..::..Boolean
The value of the property