共用方式為


HttpContextWrapper.IsWebSocketRequestUpgrading 屬性

定義

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

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

屬性值

Boolean

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

適用於