Share via


ModulePage.Connection Property

Definition

Gets the associated connection.

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

Property Value

The Connection object that is associated with the ModulePage object.

Examples

The following example sends connection data to the trace listener.

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

} 

Applies to