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

# XGameRuntimeIsFeatureAvailable

> XGameRuntimeIsFeatureAvailable

# XGameRuntimeIsFeatureAvailable

Gaming Runtime 기능을 사용할 수 있는지 여부를 나타냅니다.

## 구문

```cpp theme={null}
bool XGameRuntimeIsFeatureAvailable(  
         XGameRuntimeFeature feature  
)  
```

### 매개 변수

*feature*   \
형식: [XGameRuntimeFeature](https://docs.xbox.com/ko/reference/system/xgameruntimefeature/enums/xgameruntimefeature.md)

쿼리할 Gaming Runtime 기능입니다.

### 반환 값

형식: bool

Gaming Runtime 기능을 사용할 수 있으면 **true**를 반환하고, 그렇지 않으면 **false**를 반환합니다.

## 설명

[XGameRuntimeInitialize](https://docs.xbox.com/ko/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md)로 Gaming Runtime을 초기화한 후, 이 함수를 사용하여 게임에서 사용할 수 있는 특정 Gaming Runtime 기능인지 확인합니다.

다음 예제는 **XGameRuntimeIsFeatureAvailable** 함수를 사용하여 Async, AsyncProvider 및 TaskQueue 기능을 사용할 수 있는지 여부를 확인합니다. 이 세 가지 기능은 모두 작업 큐를 사용하여 비동기 작업을 실행하는 데 필요합니다.

```cpp theme={null}
// Confirm that all of the features needed to run asynchronous tasks on 
// task queues are available.
bool Game::CheckAsyncTaskQueueFeatures()
{
    
    return (XGameRuntimeIsFeatureAvailable(XGameRuntimeFeature::XTaskQueue) &&
        XGameRuntimeIsFeatureAvailable(XGameRuntimeFeature::XAsyncProvider) &&
        XGameRuntimeIsFeatureAvailable(XGameRuntimeFeature::XAsync));

}
```

## 요구 사항

**헤더:** XGameRuntimeFeature.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 문서

* [Game Chat 2 소개](https://docs.xbox.com/ko/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)

## 함께 보기

[Gaming Runtime 용어집](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/intro/gaming-runtime-glossary)\
[XGameRuntimeFeature 클래스](https://docs.xbox.com/ko/reference/system/xgameruntimefeature/xgameruntimefeature_members.md)\
[XGameRuntimeFeature 열거형](https://docs.xbox.com/ko/reference/system/xgameruntimefeature/enums/xgameruntimefeature.md)


## Related topics

- [XGameRuntimeFeature 참조](https://docs.xbox.com/ko/reference/system/xgameruntimefeature/enums/xgameruntimefeature.md)
- [XGameRuntimeFeature (API 콘텐츠)](https://docs.xbox.com/ko/reference/system/xgameruntimefeature/xgameruntimefeature_members.md)
- [Windows 소켓 개요](https://docs.xbox.com/ko/build/console-features/networking/game-mesh/winsock-intro-networking.md)
- [Unity 프로젝트에서 GDK API용 C# 래퍼 사용](https://docs.xbox.com/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XSystemRuntimeInfo](https://docs.xbox.com/ko/reference/system/xsystem/structs/xsystemruntimeinfo.md)
