IDatabasePropertiesContainer.GetPropertyAsBoolean Method
Returns the value of a catalog or server property as a Boolean value.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Function GetPropertyAsBoolean ( _
propertyName As String, _
source As DatabaseTaskHost..::..PropertySource, _
defaultValue As Boolean _
) As Boolean
'Usage
Dim instance As IDatabasePropertiesContainer
Dim propertyName As String
Dim source As DatabaseTaskHost..::..PropertySource
Dim defaultValue As Boolean
Dim returnValue As Boolean
returnValue = instance.GetPropertyAsBoolean(propertyName, _
source, defaultValue)
bool GetPropertyAsBoolean(
string propertyName,
DatabaseTaskHost..::..PropertySource source,
bool defaultValue
)
bool GetPropertyAsBoolean(
String^ propertyName,
DatabaseTaskHost..::..PropertySource source,
bool defaultValue
)
function GetPropertyAsBoolean(
propertyName : String,
source : DatabaseTaskHost..::..PropertySource,
defaultValue : boolean
) : boolean
abstract GetPropertyAsBoolean :
propertyName:string *
source:DatabaseTaskHost..::..PropertySource *
defaultValue:bool -> bool
Parameters
- propertyName
Type: System.String
The property name
- source
Type: Microsoft.Data.Schema.Build.DatabaseTaskHost.PropertySource
The property source (catalog or server)
- defaultValue
Type: System.Boolean
Specifies a default 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
IDatabasePropertiesContainer Interface
IDatabasePropertiesContainer Members
Microsoft.VisualStudio.Data.Schema.Project.Project Namespace