Bagikan melalui


WebSocketError Kelas

Definisi

Menyediakan status kesalahan soket pada objek MessageWebSocket atau StreamWebSocket .

public ref class WebSocketError abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WebSocketError final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class WebSocketError
Public Class WebSocketError
Warisan
Object Platform::Object IInspectable WebSocketError
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Metode

GetStatus(Int32)

Mendapatkan nilai WebErrorStatus berdasarkan kesalahan yang ditemui oleh operasi WebSocket.

Berlaku untuk

Lihat juga