ManagementUnit.Context Property

Definition

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

} 

Applies to