ModulePage.Connection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
);
}