UserPolicy.CreateFromTemplateDescriptorAsync method
Publishing using templates
Syntax
public:
static IAsyncOperation<UserPolicy>^ CreateFromTemplateDescriptorAsync(
TemplateDescriptor templateDescriptor,
String^ userId,
IAuthenticationCallback authenticationCallback,
UserPolicyCreationOptions options,
IMapView<String^, String^>^ signedAppData
)
Parameters
-
templateDescriptor
-
Type: TemplateDescriptor
The template from which the policy is being created.
-
userId
-
Type: String
The email address of the user that is protecting the content.
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
Authentication callback to be used for auth
-
options
-
Type: UserPolicyCreationOptions
Options for creating protection policy object. For more information, see UserPolicyCreationOptions.
-
signedAppData
-
Type: IMapView<String^, String^>^
Singed App data to be stored with this template
Return value
Type: UserPolicy
A UserPolicy object.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8.1 |
Namespace |
Microsoft::RightsManagement |
Metadata |
|