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());
}
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for