Connection.ScopePath 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 management scope path for the connection.
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
Property Value
The ManagementScopePath object that is associated with this connection.
Examples
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;
}
Remarks
The path is used to identify the associated management unit. The contents of the ManagementScopePath object depend on the management scope. For more information about the path, see the ConfigurationPath property.