Compartir a través de


Connection.ScopePath Propiedad

Definición

Obtiene la ruta de acceso del ámbito de administración para la conexión.

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

Valor de propiedad

Objeto ManagementScopePath asociado a esta conexión.

Ejemplos

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;
}

Comentarios

La ruta de acceso se usa para identificar la unidad de administración asociada. El contenido del ManagementScopePath objeto depende del ámbito de administración. Para obtener más información sobre la ruta de acceso, vea la ConfigurationPath propiedad .

Se aplica a