Share via


GameService.GetPartnerTokenAsync(Uri) Method

Definition

Retrieves the partner token for the specified Uri.

public:
 static IAsyncOperation<Platform::String ^> ^ GetPartnerTokenAsync(Uri ^ audienceUri);
 static IAsyncOperation<winrt::hstring> GetPartnerTokenAsync(Uri const& audienceUri);
public static IAsyncOperation<string> GetPartnerTokenAsync(System.Uri audienceUri);
function getPartnerTokenAsync(audienceUri)
Public Shared Function GetPartnerTokenAsync (audienceUri As Uri) As IAsyncOperation(Of String)

Parameters

audienceUri
Uri Uri

The Uri for which the partner token is retrieved.

Returns

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

When this method completes, it returns a string containing the partern token.

Remarks

All members of the Windows.Phone.System.UserProfile.GameServices.Core namespace can only be used by the XBox Live SDK. These APIs cannot be called except by applications that have the ID_CAP_GAMERSERVICES capability.

Applies to