AspNetWebSocketContext Class

.NET Framework (current version)
 

Provides a base class that represents contextual details about an individual AspNetWebSocket request.

Namespace:   System.Web.WebSockets
Assembly:  System.Web (in System.Web.dll)

System::Object
  System.Net.WebSockets::WebSocketContext
    System.Web.WebSockets::AspNetWebSocketContext

public ref class AspNetWebSocketContext abstract : WebSocketContext

NameDescription
System_CAPS_protmethodAspNetWebSocketContext()

When implemented in a derived class, initializes a new instance of the AspNetWebSocketContext class.

NameDescription
System_CAPS_pubpropertyAnonymousID

Gets the anonymous-user identifier for the current AspNetWebSocket connection.

System_CAPS_pubpropertyApplication

Gets the HttpApplicationState object for the host ASP.NET application.

System_CAPS_pubpropertyApplicationPath

Gets the root virtual path of the host ASP.NET application.

System_CAPS_pubpropertyCache

Gets the Cache object for the current application domain.

System_CAPS_pubpropertyClientCertificate

Gets the certificate that a remote client issues in response to the server's request for the client's identity.

System_CAPS_pubpropertySystem_CAPS_staticConnectionCount

Gets the number of active WebSocket connections.

System_CAPS_pubpropertyCookieCollection

Returns the Cookies collection typed as a CookieCollection for Windows applications that use cookies based on the Cookie class (such as WCF server applications).(Overrides WebSocketContext::CookieCollection.)

System_CAPS_pubpropertyCookies

Gets the collection of cookies that was sent by a remote client in an AspNetWebSocket message.

System_CAPS_pubpropertyFilePath

Gets the virtual path of the requested file.

System_CAPS_pubpropertyHeaders

Gets the collection of headers that was sent by a remote client.(Overrides WebSocketContext::Headers.)

System_CAPS_pubpropertyIsAuthenticated

Gets a value that indicates whether a message from a remote client has been authenticated.(Overrides WebSocketContext::IsAuthenticated.)

System_CAPS_pubpropertyIsClientConnected

Gets a value that indicates whether the client is connected to the server.

System_CAPS_pubpropertyIsDebuggingEnabled

Gets a value that indicates whether the application that hosts the current AspNetWebSocket connection is running in ASP.NET debug mode.

System_CAPS_pubpropertyIsLocal

Gets a value that indicates whether an AspNetWebSocket message was sent from the local computer.(Overrides WebSocketContext::IsLocal.)

System_CAPS_pubpropertyIsSecureConnection

Gets a value that indicates whether the AspNetWebSocket connection uses the WebSocket Secure protocol (WSS).(Overrides WebSocketContext::IsSecureConnection.)

System_CAPS_pubpropertyItems

When overridden in a derived class, gets a key/value collection that can be used to share data between a module and a handler during an AspNetWebSocket request.

System_CAPS_pubpropertyLogonUserIdentity

Gets the security token for the current user.

System_CAPS_pubpropertyOrigin

Gets the origin of the WebSocket connection.(Overrides WebSocketContext::Origin.)

System_CAPS_pubpropertyPath

Gets the virtual path of the requested resource.

System_CAPS_pubpropertyPathInfo

Gets additional path information for a resource that has a URL extension.

System_CAPS_pubpropertyProfile

Gets an object that contains user profile data.

System_CAPS_pubpropertyQueryString

Gets the collection of query string variables from an AspNetWebSocket message that was sent by the client.

System_CAPS_pubpropertyRawUrl

Gets the portion of a URL that follows the website name in an AspNetWebSocket message that was sent by the client.

System_CAPS_pubpropertyRequestUri

Gets the original Uniform Resource Identifier (URI) of an AspNetWebSocket message that was sent by the client.(Overrides WebSocketContext::RequestUri.)

System_CAPS_pubpropertySecWebSocketKey

Gets the encrypted key that is sent in the handshake request to establish an AspNetWebSocket connection.(Overrides WebSocketContext::SecWebSocketKey.)

System_CAPS_pubpropertySecWebSocketProtocols

Gets a list of application-level protocols (subprotocols) that a client can use to send messages using an AspNetWebSocket connection.(Overrides WebSocketContext::SecWebSocketProtocols.)

System_CAPS_pubpropertySecWebSocketVersion

Gets the version of the WebSocket protocol that an AspNetWebSocket connection must use.(Overrides WebSocketContext::SecWebSocketVersion.)

System_CAPS_pubpropertyServer

Gets the HttpServerUtility object that provides methods that are used in processing requests.

System_CAPS_pubpropertyServerVariables

Gets a name/value collection of variables that provide information about the web server and about the current AspNetWebSocket connection.

System_CAPS_pubpropertyTimestamp

Gets the timestamp of an AspNetWebSocket message that was sent by the client.

System_CAPS_pubpropertyUnvalidated

Gets unvalidated versions of one or more field values that are submitted in an AspNetWebSocket message.

System_CAPS_pubpropertyUrlReferrer

Gets a collection of URI data about the message that was sent by the client prior to the current message.

System_CAPS_pubpropertyUser

Gets an object that represents the security context of the user for the current AspNetWebSocket connection.(Overrides WebSocketContext::User.)

System_CAPS_pubpropertyUserAgent

Gets the name of the remote client.

System_CAPS_pubpropertyUserHostAddress

Gets the IP address of the remote client.

System_CAPS_pubpropertyUserHostName

Gets the DNS name of the remote client.

System_CAPS_pubpropertyUserLanguages

Gets the collection of language preferences for the remote client.

System_CAPS_pubpropertyWebSocket

Gets a reference to the current AspNetWebSocket instance.(Overrides WebSocketContext::WebSocket.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 4.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: