IWebSocketContext::GetCloseStatus メソッド

接続の終了状態コードを取得します。

構文

virtual HRESULT GetCloseStatus(  
   _Out_ USHORT* pStatusCode,  
   _Out_ BYTE** ppbReason = NULL,  
   _Out_ USHORT* pcbReason = NULL  
) = 0;  

パラメーター

pStatusCode
[OUT]サーバーによって提供される終了状態コードを指します。

ppbReason
[OUT]理由テキスト文字列の先頭をポイントします。

pcbReason
[OUT]理由テキスト文字列内のバイト数。

戻り値

HRESULT。 有効な値を次の表に示しますが、これ以外にもあります。

説明
S_OK 操作が成功したことを示します。

要件

Type 説明
Client - Windows Vista 上の IIS 7.0
- Windows 7 上の IIS 7.5
- Windows 8 上の IIS 8.0
- Windows 10の IIS 10.0
サーバー - Windows Server 2008 の IIS 7.0
- Windows Server 2008 R2 の IIS 7.5
- Windows Server 2012 の IIS 8.0
- Windows Server 2012 R2 の IIS 8.5
- Windows Server 2016の IIS 10.0
製品 - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0
- IIS Express 7.5、IIS Express 8.0、IIS Express 10.0
Header Iiswebsocket.h

参照

IWebSocketContext インターフェイス