IDatabaseProjectPropertiesContainer.GetPropertyAsBoolean Method
Returns the value of a catalog or server 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
Function GetPropertyAsBoolean ( _
propertyName As String, _
source As DatabaseTaskHost..::..PropertySource, _
defaultValue As Boolean _
) As Boolean
bool GetPropertyAsBoolean(
string propertyName,
DatabaseTaskHost..::..PropertySource source,
bool defaultValue
)
bool GetPropertyAsBoolean(
String^ propertyName,
DatabaseTaskHost..::..PropertySource source,
bool defaultValue
)
abstract GetPropertyAsBoolean :
propertyName:string *
source:DatabaseTaskHost..::..PropertySource *
defaultValue:bool -> bool
function GetPropertyAsBoolean(
propertyName : String,
source : DatabaseTaskHost..::..PropertySource,
defaultValue : boolean
) : boolean
Parameters
- propertyName
Type: System.String
The name of the property.
- source
Type: Microsoft.Data.Schema.Build.DatabaseTaskHost.PropertySource
The property source (catalog or server).
- defaultValue
Type: System.Boolean
The default value, if the property is not set.
Return Value
Type: System.Boolean
true if the property was retrieved.
.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
IDatabaseProjectPropertiesContainer Interface
Microsoft.VisualStudio.Data.Schema.Package.Project Namespace