次の方法で共有


IDatabaseProjectNode.GetProjectPropertyAsBoolean メソッド

プロジェクト プロパティの値を Boolean として返します。

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

構文

'宣言
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

パラメーター

  • resetCache
    型: System.Boolean
    MSBuild プロパティ キャッシュを再処理する場合は true。
  • defaultValue
    型: System.Boolean
    文字列値が空であるか、無効の場合はブール型の既定値。

戻り値

型: System.Boolean
Boolean としてのプロジェクト プロパティの現在値。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

IDatabaseProjectNode インターフェイス

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