Lingua

WebSocketClosedEventArgs Classe

Definizione

Fornisce dati per un evento chiuso in un oggetto MessageWebSocket, StreamWebSocket o IWebSocket.

public ref class WebSocketClosedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WebSocketClosedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WebSocketClosedEventArgs
Public NotInheritable Class WebSocketClosedEventArgs
Ereditarietà
Object Platform::Object IInspectable WebSocketClosedEventArgs
Attributi

Requisiti Windows

Requisiti Descrizione
Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Commenti

Un'istanza di WebSocketClosedEventArgs viene creata quando si verifica l'evento MessageWebSocket.Closed, StreamWebSocket.Closed o IWebSocket.Closed .

Proprietà

Nome Descrizione
Code

Ottiene informazioni sul motivo per cui un oggetto WebSocket è stato chiuso.

Reason

Ottiene altri dettagli sul motivo per cui un oggetto WebSocket è stato chiuso.

Si applica a

Vedi anche