StreamWebSocket.Close StreamWebSocket.Close StreamWebSocket.Close StreamWebSocket.Close StreamWebSocket.Close Method

Definition

Overloads

Close() Close() Close() Close() Close()

Closes the StreamWebSocket and sends an empty close frame to the server.

Close(UInt16, String) Close(UInt16, String) Close(UInt16, String) Close(UInt16, String) Close(UInt16, String)

Closes the StreamWebSocket and indicates a reason for the closure.

Close() Close() Close() Close() Close()

Closes the StreamWebSocket and sends an empty close frame to the server.

public : void Close()
void Close() const;
// This member is not implemented in C#
' This member is not implemented in VB.Net
// This member is not implemented in JavaScript

Remarks

The Close method is used by Windows app using JavaScript. For apps written using the .NET Framework 4.5 in C# and VB.NET, the Close method is exposed as the method on the StreamWebSocket. For apps written in C++, the Close method will be called when using the delete keyword on the object.

See also

Close(UInt16, String) Close(UInt16, String) Close(UInt16, String) Close(UInt16, String) Close(UInt16, String)

Closes the StreamWebSocket and indicates a reason for the closure.

public : void Close(unsigned short code, Platform::String reason)
void Close(UInt16 code, winrt::hstring reason) const;
// This member is not implemented in C#
' This member is not implemented in VB.Net
// This member is not implemented in JavaScript

Parameters

code
UInt16 UInt16 UInt16

Status code indicating the reason for closure.

reason
String String String

Optional UTF-8-encoded data with additional information about the closure.

See also