次の方法で共有


ProjectConfig.GetConfigurationPropertyAsBool メソッド

指定したプロパティの値をブール値として取得します。

名前空間 :  Microsoft.VisualStudio.Data.Schema.Project.Project.MPF
アセンブリ :  Microsoft.VisualStudio.Data.Schema.Project (Microsoft.VisualStudio.Data.Schema.Project.dll 内)

構文

'宣言
Protected Function GetConfigurationPropertyAsBool ( _
    propertyName As String, _
    defaultValue As Boolean _
) As Boolean
'使用
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

パラメータ

  • propertyName
    型 : System.String
    取得するプロパティの名前。
  • defaultValue
    型 : System.Boolean
    ブール値としての構成プロパティ。 解析に失敗した場合は、"defaultValue" を返します。

戻り値

型 : System.Boolean

参照

参照

ProjectConfig クラス

ProjectConfig メンバ

Microsoft.VisualStudio.Data.Schema.Project.Project.MPF 名前空間