Condividi tramite


AppInstallManager.GetFreeUserEntitlementForUserAsync Metodo

Definizione

Concede un diritto gratuito per l'app specificata all'utente specificato.

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)

Parametri

user
User

Oggetto Windows.System.User che rappresenta l'utente a cui si vuole concedere il diritto.

storeId
String

Platform::String

winrt::hstring

ID dello Store dell'app per cui vuoi concedere il diritto.

campaignId
String

Platform::String

winrt::hstring

ID della campagna associata al diritto.

correlationVector
String

Platform::String

winrt::hstring

Stringa del vettore di correlazione che può essere usata per generare dati di telemetria.

Restituisce

Un'operazione asincrona che, al completamento, restituisce un oggetto GetEntitlementResult che indica lo stato della concessione entitlement.

Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 Creators Update (è stato introdotto in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v4.0)
Funzionalità dell'app
runFullTrust

Si applica a