WalletItemStore.GetWalletItemAsync(String) 메서드

정의

주의

ApplicationModel.Wallet 네임스페이스는 더 이상 지원되지 않으며 곧 더 이상 사용되지 않습니다. 개발자는 이 네임스페이스를 사용하지 않는 것이 좋습니다.

전자지갑 데이터베이스에서 지정된 ID가 있는 개별 전자지갑 항목을 가져옵니다. 요청된 항목은 이 앱에서 소유해야 합니다.

public:
 virtual IAsyncOperation<WalletItem ^> ^ GetWalletItemAsync(Platform::String ^ id) = GetWalletItemAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<WalletItem> GetWalletItemAsync(winrt::hstring const& id);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<WalletItem> GetWalletItemAsync(winrt::hstring const& id);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<WalletItem> GetWalletItemAsync(string id);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<WalletItem> GetWalletItemAsync(string id);
function getWalletItemAsync(id)
Public Function GetWalletItemAsync (id As String) As IAsyncOperation(Of WalletItem)

매개 변수

id
String

Platform::String

winrt::hstring

전자지갑 항목의 ID입니다.

반환

성공적으로 완료되면 이 앱이 소유한 지정된 ID로 전자지갑 항목을 반환하는 비동기 작업입니다. 비동기 프로그래밍을 사용하는 경우 결과 형식은 단일 WalletItem입니다. 현재 WalletItemStore 에서 이 앱에 대해 지정된 ID를 가진 항목을 찾을 수 없거나 항목이 이 앱에서 소유하지 않은 경우 결과는 null입니다.

특성

적용 대상

추가 정보