Partager via


IConsentCallback.ConsentAsync method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

You, the app developer, will implement this method to prompt the user for their consent. This method then returns a collection of IConsent objects are used for managing the user consent process.

Syntax

public:
IAsyncOperation<IIterable<IConsent^>^ ConsentAsync(
  IIterable<IConsent^>^ consents
)

Parameters

consents

Type: IConsent

Collection of IConsent objects

Return value

Type: IAsyncOperation<IIterable<IConsent^>^

The asynchronous operation. Upon completion, IAsyncOperation.GetResults returns a collection via IIterable of IConsent objects.

Requirements

Minimum supported client
None supported
Minimum supported server
None supported
Minimum supported phone
Windows Phone 8.1
Namespace
Microsoft::RightsManagement
Metadata
Microsoft.RightsManagement.winmd

See also

IConsentCallback

IConsent