共用方式為


HttpContext.IsWebSocketRequestUpgrading 屬性

定義

取得值,表示連接是否正從 HTTP 連接升級為 AspNetWebSocket 連接。

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

屬性值

如果連接正在升級,則為 true;否則為 false

適用於