StoreContext.GetStoreProductsAsync 메서드

정의

오버로드

GetStoreProductsAsync(IIterable<String>, IIterable<String>)

현재 앱과 연결된 지정된 제품에 대한 Microsoft Store 목록 정보를 가져옵니다.

GetStoreProductsAsync(IIterable<String>, IIterable<String>, StoreProductOptions)

쿼리에 필터를 사용하는 옵션과 함께 현재 앱과 연결된 지정된 제품에 대한 Microsoft Store 목록 정보를 가져옵니다.

GetStoreProductsAsync(IIterable<String>, IIterable<String>)

현재 앱과 연결된 지정된 제품에 대한 Microsoft Store 목록 정보를 가져옵니다.

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetStoreProductsAsync(IIterable<Platform::String ^> ^ productKinds, IIterable<Platform::String ^> ^ storeIds) = GetStoreProductsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IIterable<winrt::hstring> const& productKinds, IIterable<winrt::hstring> const& storeIds);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IEnumerable<string> productKinds, IEnumerable<string> storeIds);
function getStoreProductsAsync(productKinds, storeIds)
Public Function GetStoreProductsAsync (productKinds As IEnumerable(Of String), storeIds As IEnumerable(Of String)) As IAsyncOperation(Of StoreProductQueryResult)

매개 변수

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

목록 정보를 검색할 제품 유형을 지정하는 문자열 배열입니다. 지원되는 문자열 값 목록은 ProductKind 속성을 참조하세요.

storeIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

목록 정보를 검색하려는 제품에 대한 Store ID 문자열의 배열입니다.

반환

성공적으로 완료되면 지정된 제품에 대한 목록 정보 및 관련 오류 정보가 포함된 StoreProductQueryResult 개체를 반환하는 비동기 작업입니다.

특성

설명

이 메서드는 현재 앱 내에서 제품을 현재 구매할 수 있는지 여부에 관계없이 현재 앱과 연결된 지정된 제품에 대한 목록 정보를 반환합니다. 현재 앱 내에서 현재 구매할 수 있는 모든 제품에 대한 정보를 검색하려면 GetStoreProductsAsync 오버로드 또는 GetAssociatedStoreProductsAsync 메서드를 대신 사용합니다.

제품의 스토어 ID는 파트너 센터에서 사용할 수 있으며 제품을 나타내는 StoreProductStoreId 속성에서도 반환됩니다. 자세한 내용은 스토어 ID를 참조하세요.

코드 예제를 포함하여 이 메서드를 사용하는 방법에 대한 자세한 내용은 앱 및 추가 기능에 대한 제품 정보 가져오기를 참조하세요.

추가 정보

적용 대상

GetStoreProductsAsync(IIterable<String>, IIterable<String>, StoreProductOptions)

쿼리에 필터를 사용하는 옵션과 함께 현재 앱과 연결된 지정된 제품에 대한 Microsoft Store 목록 정보를 가져옵니다.

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetStoreProductsAsync(IIterable<Platform::String ^> ^ productKinds, IIterable<Platform::String ^> ^ storeIds, StoreProductOptions ^ storeProductOptions) = GetStoreProductsAsync;
/// [Windows.Foundation.Metadata.Overload("GetStoreProductsWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IIterable<winrt::hstring> const& productKinds, IIterable<winrt::hstring> const& storeIds, StoreProductOptions const& storeProductOptions);
[Windows.Foundation.Metadata.Overload("GetStoreProductsWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IEnumerable<string> productKinds, IEnumerable<string> storeIds, StoreProductOptions storeProductOptions);
function getStoreProductsAsync(productKinds, storeIds, storeProductOptions)
Public Function GetStoreProductsAsync (productKinds As IEnumerable(Of String), storeIds As IEnumerable(Of String), storeProductOptions As StoreProductOptions) As IAsyncOperation(Of StoreProductQueryResult)

매개 변수

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

목록 정보를 검색할 제품 유형을 지정하는 문자열 배열입니다. 지원되는 문자열 값 목록은 ProductKind 속성을 참조하세요.

storeIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

목록 정보를 검색하려는 제품에 대한 Store ID 문자열의 배열입니다.

storeProductOptions
StoreProductOptions

쿼리에 사용할 필터를 포함하는 개체입니다.

반환

성공적으로 완료되면 지정된 제품에 대한 목록 정보 및 관련 오류 정보가 포함된 StoreProductQueryResult 개체를 반환하는 비동기 작업입니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.Services.Store.StoreContract (v3.0에서 도입되었습니다.)

설명

현재 앱 내에서 현재 구매할 수 있는 제품에 대해서만 정보를 반환하려면 storeProductOptions 매개 변수에 전달하는 개체의 ActionFilters 속성에 필터 문자열을 추가 Purchase 합니다. 현재 앱과 연결된 지정된 모든 제품에 대한 정보를 얻으려면 현재 구매할 수 있는지 여부에 관계없이 GetStoreProductsAsync 오버로드를 대신 사용합니다.

제품의 스토어 ID는 파트너 센터에서 사용할 수 있으며 제품을 나타내는 StoreProductStoreId 속성에서도 반환됩니다. 자세한 내용은 스토어 ID를 참조하세요.

코드 예제를 포함하여 이 메서드를 사용하는 방법에 대한 자세한 내용은 앱 및 추가 기능에 대한 제품 정보 가져오기를 참조하세요.

추가 정보

적용 대상