次の方法で共有


ModulePage.GetScopeStatusSummary(Connection, String, String) メソッド

定義

管理スコープの状態の概要を取得します。

protected:
 static System::String ^ GetScopeStatusSummary(Microsoft::Web::Management::Client::Connection ^ connection, System::String ^ configurationPath, System::String ^ locationSubPath);
protected static string GetScopeStatusSummary (Microsoft.Web.Management.Client.Connection connection, string configurationPath, string locationSubPath);
static member GetScopeStatusSummary : Microsoft.Web.Management.Client.Connection * string * string -> string

パラメーター

connection
Connection

Connectionオブジェクトに関連付ModulePageけられている オブジェクト。

configurationPath
String

スコープの構成パス。

locationSubPath
String

場所タグの名前。

戻り値

構成情報の説明。

次の例では、ページがサーバー接続レベルにある場合に、次の出力を表示します。

GetScopeStatusSummary = Configuration: 'localhost' applicationHost.config or root web.config

void testScopeStat() {

    Connection con = (Connection) GetService(typeof(Connection));
    if (con == null)
        return;
    SH.Con = con;
    string scopeStatSum = 
        GetScopeStatusSummary(
        this.Connection, "", ""
        );
    Trace.WriteLine("GetScopeStatusSummary = " 
        + scopeStatSum);
}

注釈

パラメーターと locationSubPath パラメーターには configurationPath を指定nullできます。

適用対象