次の方法で共有


ManagementScopePath.SiteName プロパティ

定義

サイト名を取得します。

public:
 property System::String ^ SiteName { System::String ^ get(); };
public string SiteName { get; }
member this.SiteName : string
Public ReadOnly Property SiteName As String

プロパティ値

サイト名。

次の例では、トレース リスナーに詳細を送信 ManagementScopePath します。

void TrcMSP(ManagementScopePath msp) {

    Trace.WriteLine("ApplicationPath = " + msp.ApplicationPath);
    Trace.WriteLine("Port = " + msp.Port.ToString());
    if (msp.FrameworkVersion != null &&
        !string.IsNullOrEmpty(msp.FrameworkVersion.Version.ToString()))
        Trace.WriteLine("FrameworkVersion = " + msp.FrameworkVersion.Version);
    Trace.WriteLine("ServerName = " + msp.ServerName);
    Trace.WriteLine("ServerReference = " + msp.ServerReference);
    Trace.WriteLine("SiteName = " + msp.SiteName);
} 

適用対象