Share via


ProjectConfig.GetConfigurationPropertyAsBool Method

Gets the value of the supplied property as a Boolean.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Project.MPF
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
    The name of the property to get
  • defaultValue
    Type: System.Boolean
    Configuration property as a Boolean. If it fails to parse, return "defaultValue".

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ProjectConfig Class

ProjectConfig Members

Microsoft.VisualStudio.Data.Schema.Project.Project.MPF Namespace