다음을 통해 공유


SharedStorageAccessManager.RedeemTokenForFileAsync(String) 메서드

정의

원본 앱에서 받은 공유 토큰을 제공하여 다른 앱에서 공유하는 파일을 가져옵니다.

public:
 static IAsyncOperation<StorageFile ^> ^ RedeemTokenForFileAsync(Platform::String ^ token);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StorageFile> RedeemTokenForFileAsync(winrt::hstring const& token);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageFile> RedeemTokenForFileAsync(string token);
function redeemTokenForFileAsync(token)
Public Shared Function RedeemTokenForFileAsync (token As String) As IAsyncOperation(Of StorageFile)

매개 변수

token
String

Platform::String

winrt::hstring

공유 파일에 대한 공유 토큰입니다.

반환

공유 파일을 포함하는 래퍼 개체입니다.

특성

설명

원본 앱이 대상 앱과 파일을 공유하는 경우 대상 앱은 RedeemTokenForFileAsync 메서드를 호출하여 공유 파일을 가져옵니다.

코드 샘플은 SharedStorageAccessManager를 참조하세요.

적용 대상