次の方法で共有


Connection.ScopePath プロパティ

定義

接続の管理スコープ パスを取得します。

public:
 property Microsoft::Web::Management::Client::ManagementScopePath ^ ScopePath { Microsoft::Web::Management::Client::ManagementScopePath ^ get(); };
public Microsoft.Web.Management.Client.ManagementScopePath ScopePath { get; }
member this.ScopePath : Microsoft.Web.Management.Client.ManagementScopePath
Public ReadOnly Property ScopePath As ManagementScopePath

プロパティ値

ManagementScopePathこの接続に関連付けられている オブジェクト。

public LinkedList<string> ScopePath(IServiceProvider sp) {

    Connection con = (Connection)sp.GetService(typeof(Connection));
    LinkedList<string> llp = new LinkedList<string>();

    llp.AddLast("Port: " + con.ScopePath.Port.ToString());
    llp.AddLast("ServerReference :" + con.ScopePath.ServerReference);
    if (con.ScopePath.SiteName != String.Empty && con.ScopePath.SiteName != null)
        llp.AddLast("SiteName: " + con.ScopePath.SiteName);
    llp.AddLast("ApplicationPath: " + con.ScopePath.ApplicationPath);
    if (con.ScopePath.FrameworkVersion != null)
        llp.AddLast("Port: " + con.ScopePath.FrameworkVersion.Name);

    return llp;
}

注釈

パスは、関連付けられている管理単位を識別するために使用されます。 オブジェクトの ManagementScopePath 内容は、管理スコープによって異なります。 パスの詳細については、 プロパティを ConfigurationPath 参照してください。

適用対象