DatabaseProjectConfigurationExtender.GetConfigurationPropertyAsBool Method
Tries to get the configuration property as a Boolean. If it fails to parse, returns "defaultValue".
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project.Features.Extenders
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.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
)
protected function GetConfigurationPropertyAsBool(
propertyName : String,
defaultValue : boolean
) : boolean
member GetConfigurationPropertyAsBool :
propertyName:string *
defaultValue:bool -> bool
Parameters
- propertyName
Type: System.String
Specifies the property name
- defaultValue
Type: System.Boolean
Specifies the default Boolean value
Return Value
Type: System.Boolean
.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
DatabaseProjectConfigurationExtender Members
Microsoft.VisualStudio.Data.Schema.Project.Project.Features.Extenders Namespace