AppInstallManager.GetFreeUserEntitlementForUserAsync メソッド

定義

指定したユーザーに、指定したアプリの無料エンタイトルメントを付与します。

public:
 virtual IAsyncOperation<GetEntitlementResult ^> ^ GetFreeUserEntitlementForUserAsync(User ^ user, Platform::String ^ storeId, Platform::String ^ campaignId, Platform::String ^ correlationVector) = GetFreeUserEntitlementForUserAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GetEntitlementResult> GetFreeUserEntitlementForUserAsync(User const& user, winrt::hstring const& storeId, winrt::hstring const& campaignId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GetEntitlementResult> GetFreeUserEntitlementForUserAsync(User user, string storeId, string campaignId, string correlationVector);
function getFreeUserEntitlementForUserAsync(user, storeId, campaignId, correlationVector)
Public Function GetFreeUserEntitlementForUserAsync (user As User, storeId As String, campaignId As String, correlationVector As String) As IAsyncOperation(Of GetEntitlementResult)

パラメーター

user
User

エンタイトルメントを付与するユーザーを表す Windows.System.User オブジェクト。

storeId
String

Platform::String

winrt::hstring

エンタイトルメントを付与するアプリのストア ID。

campaignId
String

Platform::String

winrt::hstring

エンタイトルメントに関連付けられているキャンペーンの ID。

correlationVector
String

Platform::String

winrt::hstring

テレメトリ データの生成に使用できる相関ベクトル文字列。

戻り値

正常に完了すると、エンタイトルメント許可の状態を示す GetEntitlementResult オブジェクトを返す非同期操作。

属性

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)
アプリの機能
runFullTrust

適用対象