Share via


IDatabaseProjectNode.GetProjectPropertyAsBoolean Method

Returns the value of a project 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 GetProjectPropertyAsBoolean ( _
    propertyName As String, _
    resetCache As Boolean, _
    defaultValue As Boolean _
) As Boolean
bool GetProjectPropertyAsBoolean(
    string propertyName,
    bool resetCache,
    bool defaultValue
)
bool GetProjectPropertyAsBoolean(
    String^ propertyName, 
    bool resetCache, 
    bool defaultValue
)
abstract GetProjectPropertyAsBoolean : 
        propertyName:string * 
        resetCache:bool * 
        defaultValue:bool -> bool 
function GetProjectPropertyAsBoolean(
    propertyName : String, 
    resetCache : boolean, 
    defaultValue : boolean
) : boolean

Parameters

  • resetCache
    Type: System.Boolean
    true to reprocess the MSBuild property cache.
  • defaultValue
    Type: System.Boolean
    The default value of the Boolean, in case the string value is empty or not valid.

Return Value

Type: System.Boolean
The current value of the project property as a Boolean.

.NET Framework Security

See Also

Reference

IDatabaseProjectNode Interface

Microsoft.VisualStudio.Data.Schema.Package.Project Namespace