HttpContext.IsWebSocketRequestUpgrading 屬性

定義

取得值,表示連接是否正從 HTTP 連接升級為 AspNetWebSocket 連接。Gets a value that indicates whether the connection is upgrading from an HTTP connection to an AspNetWebSocket connection.

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

屬性值

如果連接正在升級,則為 true;否則為 falsetrue if the connection is upgrading; otherwise, false.

適用於