AspNetWebSocketContext Class
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.
Provides a base class that represents contextual details about an individual AspNetWebSocket request.
public ref class AspNetWebSocketContext abstract : System::Net::WebSockets::WebSocketContext
public abstract class AspNetWebSocketContext : System.Net.WebSockets.WebSocketContext
type AspNetWebSocketContext = class
inherit WebSocketContext
Public MustInherit Class AspNetWebSocketContext
Inherits WebSocketContext
- Inheritance
Asp |
When implemented in a derived class, initializes a new instance of the AspNetWebSocketContext class. |
AnonymousID |
Gets the anonymous-user identifier for the current AspNetWebSocket connection. |
Application |
Gets the HttpApplicationState object for the host ASP.NET application. |
Application |
Gets the root virtual path of the host ASP.NET application. |
Cache |
Gets the Cache object for the current application domain. |
Client |
Gets the certificate that a remote client issues in response to the server's request for the client's identity. |
Connection |
Gets the number of active WebSocket connections. |
Cookie |
Returns the Cookies collection typed as a CookieCollection for Windows applications that use cookies based on the Cookie class (such as WCF server applications). |
Cookies |
Gets the collection of cookies that was sent by a remote client in an AspNetWebSocket message. |
File |
Gets the virtual path of the requested file. |
Headers |
Gets the collection of headers that was sent by a remote client. |
Is |
Gets a value that indicates whether a message from a remote client has been authenticated. |
Is |
Gets a value that indicates whether the client is connected to the server. |
Is |
Gets a value that indicates whether the application that hosts the current AspNetWebSocket connection is running in ASP.NET debug mode. |
Is |
Gets a value that indicates whether an AspNetWebSocket message was sent from the local computer. |
Is |
Gets a value that indicates whether the AspNetWebSocket connection uses the WebSocket Secure protocol (WSS). |
Items |
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. |
Logon |
Gets the security token for the current user. |
Origin |
Gets the origin of the WebSocket connection. |
Path |
Gets the virtual path of the requested resource. |
Path |
Gets additional path information for a resource that has a URL extension. |
Profile |
Gets an object that contains user profile data. |
Query |
Gets the collection of query string variables from an AspNetWebSocket message that was sent by the client. |
Raw |
Gets the portion of a URL that follows the website name in an AspNetWebSocket message that was sent by the client. |
Request |
Gets the original Uniform Resource Identifier (URI) of an AspNetWebSocket message that was sent by the client. |
Sec |
Gets the encrypted key that is sent in the handshake request to establish an AspNetWebSocket connection. |
Sec |
Gets a list of application-level protocols (subprotocols) that a client can use to send messages using an AspNetWebSocket connection. |
Sec |
Gets the version of the WebSocket protocol that an AspNetWebSocket connection must use. |
Server |
Gets the HttpServerUtility object that provides methods that are used in processing requests. |
Server |
Gets a name/value collection of variables that provide information about the web server and about the current AspNetWebSocket connection. |
Timestamp |
Gets the timestamp of an AspNetWebSocket message that was sent by the client. |
Unvalidated |
Gets unvalidated versions of one or more field values that are submitted in an AspNetWebSocket message. |
Url |
Gets a collection of URI data about the message that was sent by the client prior to the current message. |
User |
Gets an object that represents the security context of the user for the current AspNetWebSocket connection. |
User |
Gets the name of the remote client. |
User |
Gets the IP address of the remote client. |
User |
Gets the DNS name of the remote client. |
User |
Gets the collection of language preferences for the remote client. |
Web |
Gets a reference to the current AspNetWebSocket instance. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: