Megosztás a következőn keresztül:


LimitedAccessFeatures.TryUnlockFeature(String, String, String) Method

Definition

Submits a request to Microsoft to authorize use of a specific Limited Access Feature. Users must have previously obtained a feature ID and a token from Microsoft in order to successfully call this API.

public:
 static LimitedAccessFeatureRequestResult ^ TryUnlockFeature(Platform::String ^ featureId, Platform::String ^ token, Platform::String ^ attestation);
 static LimitedAccessFeatureRequestResult TryUnlockFeature(winrt::hstring const& featureId, winrt::hstring const& token, winrt::hstring const& attestation);
public static LimitedAccessFeatureRequestResult TryUnlockFeature(string featureId, string token, string attestation);
function tryUnlockFeature(featureId, token, attestation)
Public Shared Function TryUnlockFeature (featureId As String, token As String, attestation As String) As LimitedAccessFeatureRequestResult

Parameters

featureId
String

Platform::String

winrt::hstring

The ID, provided by Microsoft. that identifies the feature being requested.

token
String

Platform::String

winrt::hstring

The string receieved from Microsoft upon agreeing to the requirements for use of the feature.

attestation
String

Platform::String

winrt::hstring

A plain-english statement declaring that the publisher has permission to use the feature.

Returns

A LimitedAccessFeatureRequestResult value indicating the response to the user request.

Applies to