HttpContextBase.IsWebSocketRequest 属性

定义

在派生类中实现时,获取一个值,该值指示该请求是否是一个 AspNetWebSocket 连接请求。

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

属性值

如果该请求是一个 AspNetWebSocket 请求,则为 true,否则为 false

适用于