HttpContext.IsWebSocketRequestUpgrading 属性

定义

获取指示连接是否从 HTTP 连接升级到 AspNetWebSocket 连接的值。

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

属性值

Boolean

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

适用于