語言

WebSocketClosedEventArgs.Reason 屬性

定義

提供更多關於 WebSocket 物件關閉原因的詳細資訊。

public:
 property Platform::String ^ Reason { Platform::String ^ get(); };
winrt::hstring Reason();
public string Reason { get; }
var string = webSocketClosedEventArgs.reason;
Public ReadOnly Property Reason As String

屬性值

String

Platform::String

winrt::hstring

有關關閉的詳細資訊。

適用於

另請參閱