編輯

共用方式為


HttpContext.IsWebSocketRequest Property

Definition

Gets a value that indicates whether the request is an AspNetWebSocket request.

public:
 property bool IsWebSocketRequest { bool get(); };
public bool IsWebSocketRequest { get; }
member this.IsWebSocketRequest : bool
Public ReadOnly Property IsWebSocketRequest As Boolean

Property Value

true if the request is an AspNetWebSocket request; otherwise, false.

Remarks

This method returns true if the request contains the initial AspNetWebSocket handshake and the WebSocket module of IIS is active.

Applies to