Share via


MSTemplateDescriptor templateListWithUserId:userId:authenticationCallback:completionBlock method

Get the templates.

Note

templateListWithUserId should be invoked from the main thread.

Signature

+ (MSAsyncControl *)templateListWithUserId:(NSString *)userId
                    authenticationCallback:(id<MSAuthenticationCallback>)authenticationCallback
                           completionBlock:(void(^)(NSArray/*MSTemplateDescriptor*/ *templates, NSError *error))completionBlock;

Parameters

Name Datatype Notes
userId
NSString *
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.
authenticationCallback
id<MSAuthenticationCallback>
authentication callback to be used for auth.
completionBlock
(NSArray *templates, NSError *error)
An array of MSTemplateDescriptor matching the user's tenant template and error code.

Returns

An array of MSTemplateDescriptor matching the user's tenant template.

Defined in

MSTemplateDescriptor.h

Supported Platforms

Minimum supported OS versions
iOS 7.0 and OS X 10.8

Remarks

templateListWithUserId should be invoked from the main thread.