<?xml version="1.0" encoding="utf-8"?>
<Type Name="HttpListenerContext" FullName="System.Net.HttpListenerContext">
  <TypeSignature Language="C#" Value="public sealed class HttpListenerContext" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit HttpListenerContext extends System.Object" />
  <AssemblyInfo>
    <AssemblyName>System</AssemblyName>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
    <AssemblyVersion>4.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>System.Object</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    <since version=".NET 2.0" />
    <remarks>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>This class provides the information related to a client's Hypertext Transfer Protocol (HTTP) request being processed by an <see cref="T:System.Net.HttpListener" /> object. This class also has methods that allow an <see cref="T:System.Net.HttpListener" /> object to accept a WebSocket connection.</para>
      <para>The <see cref="M:System.Net.HttpListener.GetContext" /> method returns instances of the <see cref="T:System.Net.HttpListenerContext" /> class. To get the object that represents the client request, use the <see cref="P:System.Net.HttpListenerContext.Request" /> property. To get the object that represents the response that will be sent to the client by the <see cref="T:System.Net.HttpListener" />, use the <see cref="P:System.Net.HttpListenerContext.Response" /> property. To get user information about the client sending the request, such as its login name and whether it has been authenticated, you can query the properties in the <see cref="T:System.Security.Principal.IPrincipal" /> object returned by the <see cref="P:System.Net.HttpListenerContext.User" /> property.</para>
      <para>Closing an <see cref="T:System.Net.HttpListenerContext" /> object sends the response to the client and frees any resources used by the <see cref="T:System.Net.HttpListenerContext" />. Aborting an <see cref="T:System.Net.HttpListenerContext" /> object discards the response to the client if it has not already been sent, and frees any resources used by the <see cref="T:System.Net.HttpListenerContext" />. After closing or aborting an <see cref="T:System.Net.HttpListenerContext" /> object, you cannot reference its methods or properties. If you do so, you will receive an <see cref="T:System.ObjectDisposedException" /> exception.</para>
    </remarks>
    <summary>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Provides access to the request and response objects used by the <see cref="T:System.Net.HttpListener" /> class. This class cannot be inherited.</para>
    </summary>
  </Docs>
  <Members>
    <Member MemberName="Request">
      <MemberSignature Language="C#" Value="public System.Net.HttpListenerRequest Request { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class System.Net.HttpListenerRequest Request" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Net.HttpListenerRequest</ReturnType>
      </ReturnValue>
      <Docs>
        <value>To be added.</value>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>If you close this <see cref="T:System.Net.HttpListenerContext" />, it will send the response to the client, close the <see cref="T:System.Net.HttpListenerResponse" /> that contains the response, and close the <see cref="T:System.Net.HttpListenerRequest" /> object returned by this property.</para>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Gets the <see cref="T:System.Net.HttpListenerRequest" /> that represents a client's request for a resource.</para>
        </summary>
      </Docs>
    </Member>
    <Member MemberName="Response">
      <MemberSignature Language="C#" Value="public System.Net.HttpListenerResponse Response { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class System.Net.HttpListenerResponse Response" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Net.HttpListenerResponse</ReturnType>
      </ReturnValue>
      <Docs>
        <value>To be added.</value>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Your application configures the response by setting properties in the <see cref="T:System.Net.HttpListenerResponse" /> object returned by this property. After configuring the response, you send it to the client by closing the response, or by closing this <see cref="T:System.Net.HttpListenerContext" /> object.</para>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Gets the <see cref="T:System.Net.HttpListenerResponse" /> object that will be sent to the client in response to the client's request. </para>
        </summary>
      </Docs>
    </Member>
    <Member MemberName="User">
      <MemberSignature Language="C#" Value="public System.Security.Principal.IPrincipal User { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class System.Security.Principal.IPrincipal User" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Security.Principal.IPrincipal</ReturnType>
      </ReturnValue>
      <Docs>
        <value>To be added.</value>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>An <see cref="T:System.Net.HttpListener" /> indicates that it requires authentication using the <see cref="P:System.Net.HttpListener.AuthenticationSchemes" /> property or by specifying an <see cref="T:System.Net.AuthenticationSchemeSelector" /> delegate using the <see cref="P:System.Net.HttpListener.AuthenticationSchemeSelectorDelegate" /> property.</para>
          <para>To determine the client's login name and authentication information, check the <see cref="P:System.Security.Principal.IPrincipal.Identity" /> property in the object returned by this property. </para>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Gets an object used to obtain identity, authentication information, and security roles for the client whose request is represented by this <see cref="T:System.Net.HttpListenerContext" /> object. </para>
        </summary>
      </Docs>
    </Member>
  </Members>
</Type>