> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XNetworkingQuerySecurityInformationForUrlAsyncResultSize

> XNetworkingQuerySecurityInformationForUrlAsyncResultSize

# XNetworkingQuerySecurityInformationForUrlAsyncResultSize

[XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync) 呼び出しからの結果バッファーのサイズを取得します。

## 構文

```cpp theme={null}
HRESULT XNetworkingQuerySecurityInformationForUrlAsyncResultSize(
         XAsyncBlock* asyncBlock,
         size_t* securityInformationBufferByteCount
)
```

### パラメーター

*asyncBlock*   \_Inout\_\
型: [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)\*

[XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync) 関数に渡される [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 構造体へのポインター。

*securityInformationBufferByteCount*   \_Out\_\
型: size\_t\*

結果バッファーのサイズ (バイト単位)。

### 戻り値

型: HRESULT

HRESULT の成功またはエラー コード。

## 解説

この関数は、`XNetworkingQuerySecurityInformationForUrlAsync` 呼び出しからの結果バッファーのサイズを取得します。タイトルは、クエリ関数に渡されたのと同じ `XAsyncBlock` 構造体を渡す必要があります。このバッファーは、セキュリティ情報構造体ポインター内のすべてのポインターが使用する基になるバッファーです。タイトルは、セキュリティ情報構造体ポインターを使用している間、バッファーを有効に保つ必要があります。バッファーの解放とクリーンアップにより、セキュリティ情報構造体ポインターで使用されるすべてのメモリもクリーンアップされます。Microsoft Game Development Kit (GDK) タイトルにおけるネットワーク情報については、「[ネットワーク情報の取得](/build/console-features/networking/initialization-connectivity-networking)」を参照してください。

このメソッドは呼び出し元プロセス内のローカル状態を照会して迅速に返るため、時間の影響を受けやすいコンテキストから呼び出しても安全です。

## 要件

**ヘッダー:** XNetworking.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ コンソール、XBOX Series コンソール

## 関連項目

[HTTP および WebSocket](/build/console-features/networking/web-requests/http-networking)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlAsyncResult](/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
- [XNetworking](/ja-jp/reference/networking/xnetworking/xnetworking_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
