HttpContextBase.IsWebSocketRequestUpgrading 属性

定义

在派生类中实现时,获取一个值,该值指示连接是否从 HTTP 连接更新到 AspNetWebSocket 连接。

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

属性值

Boolean

如果连接正在升级,则为 true;否则为 false

适用于