語言

AspNetWebSocketOptions 類別

定義

指定連線的設定 AspNetWebSocket 。

public ref class AspNetWebSocketOptions sealed
public sealed class AspNetWebSocketOptions
type AspNetWebSocketOptions = class
Public NotInheritable Class AspNetWebSocketOptions
繼承
AspNetWebSocketOptions

建構函式

名稱 Description
AspNetWebSocketOptions()

初始化 AspNetWebSocketOptions 類別的新執行個體。

屬性

名稱 Description
RequireSameOrigin

取得或設定啟動 WebSocket 連線的 URL 是否對應於目前伺服器。

SubProtocol

取得或設定一個應用程式專屬協定的名稱,讓遠端用戶端與伺服器可用來透過連線交換資料 AspNetWebSocket 。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於