Compartir a través de


ModulePage.Connection Propiedad

Definición

Obtiene la conexión asociada.

protected:
 property Microsoft::Web::Management::Client::Connection ^ Connection { Microsoft::Web::Management::Client::Connection ^ get(); };
protected Microsoft.Web.Management.Client.Connection Connection { get; }
member this.Connection : Microsoft.Web.Management.Client.Connection
Protected ReadOnly Property Connection As Connection

Valor de propiedad

Objeto Connection asociado al ModulePage objeto .

Ejemplos

En el ejemplo siguiente se envían datos de conexión al agente de escucha de seguimiento.

void trcCon() {
    Connection con = this.Connection;
    Trace.WriteLine(" ConfigurationPath.SiteName " +
       con.ConfigurationPath.SiteName +
       "\n ConfigurationPath.FolderPath " +
       con.ConfigurationPath.FolderPath +
       "\n Scope " + con.Scope.ToString() +
       "\n ApplicationPath " + con.ScopePath.ApplicationPath +
        "\n SiteName " + con.ScopePath.SiteName
   );

} 

Se aplica a