DatabaseProjectConfigurationExtender.GetConfigurationPropertyAsBool Method
Attempts to get the configuration 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
Protected Function GetConfigurationPropertyAsBool ( _
propertyName As String, _
defaultValue As Boolean _
) As Boolean
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 value to return if the value of the property cannot be converted to a boolean value.
Return Value
Type: System.Boolean
The value of the property.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DatabaseProjectConfigurationExtender Class
Microsoft.VisualStudio.Data.Schema.Package.Project Namespace