Bagikan melalui


IWebSocket.Close(UInt16, String) Metode

Definisi

Menutup IWebSocket.

public:
 void Close(unsigned short code, Platform::String ^ reason);
/// [Windows.Foundation.Metadata.Overload("CloseWithStatus")]
void Close(uint16_t const& code, winrt::hstring const& reason);
[Windows.Foundation.Metadata.Overload("CloseWithStatus")]
public void Close(ushort code, string reason);
function close(code, reason)
Public Sub Close (code As UShort, reason As String)

Parameter

code
UInt16

unsigned short

uint16_t

Kode status menunjukkan alasan penutupan.

reason
String

Platform::String

winrt::hstring

Data opsional yang dikodekan UTF-8 dengan informasi tambahan tentang penutupan.

Atribut

Berlaku untuk