ManagementUnit.Context 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 management context information for the current management unit.
public:
property Microsoft::Web::Management::Server::IManagementContext ^ Context { Microsoft::Web::Management::Server::IManagementContext ^ get(); };
public Microsoft.Web.Management.Server.IManagementContext Context { get; }
member this.Context : Microsoft.Web.Management.Server.IManagementContext
Public ReadOnly Property Context As IManagementContext
Property Value
An IManagementContext interface that contains client context information.
Examples
The following example uses the Context property to get information and write it to tracing output.
public void TraceContx() {
ManagementUnit mu = this.ManagementUnit;
Trace.WriteLine("Context.User " + mu.Context.User);
Trace.WriteLine("Context.IsLocalConnection " +
mu.Context.IsLocalConnection.ToString());
Trace.WriteLine("Context.ClientVersion " + mu.Context.ClientVersion.ToString());
}