共用方式為


WebSocket.CloseStatus 屬性

定義

表示遠端端點已起始關閉訊號交換的原因。

public:
 abstract property Nullable<System::Net::WebSockets::WebSocketCloseStatus> CloseStatus { Nullable<System::Net::WebSockets::WebSocketCloseStatus> get(); };
public abstract System.Net.WebSockets.WebSocketCloseStatus? CloseStatus { get; }
member this.CloseStatus : Nullable<System.Net.WebSockets.WebSocketCloseStatus>
Public MustOverride ReadOnly Property CloseStatus As Nullable(Of WebSocketCloseStatus)

屬性值

傳回 WebSocketCloseStatus

備註

如果尚未起始關閉交握,則會傳回 WebSocketCloseStatus.None。

適用於