Поделиться через


TemplateDescriptor.GetTemplateListAsync method

Get the templates.

Syntax

public:
static IAsyncOperation<IIterable<TemplateDescriptor>>^ GetTemplateListAsync(
  String^ userId, 
  IAuthenticationCallback^ authenticationCallback
)

Parameters

userId

Type: String

The email address of the user for whom the templates are being retrieved.

This email address will be used to discover the RMS service instance (either ADRMS server or Azure RMS) that the user's organization is using.

This parameter is also used as a hint for userId for user authentication, i.e., it will be passed to the IAuthenticationCallback.GetTokenAsync in the AuthenticationParameters structure.

authenticationCallback

Type: IAuthenticationCallback

An authentication callback to be used for authentication process.

Return value

Type: TemplateDescriptor

A list of templates as a collection of TemplateDescriptor 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

TemplateDescriptor