Freigeben über


UserPolicy class

Represents the policy associated with protected content.

Syntax

public ref class UserPolicy sealed 

Members

The UserPolicy class inherits from IInspectable. UserPolicy also has these types of members:

Methods

The UserPolicy class has these methods. It also inherits methods from the Object class.

Method Description
AccessCheck Returns a value that indicates whether the current user has the specified right.
AcquireAsync Acquire a policy.
CreateAsync Create a custom protection policy.
CreateFromTemplateDescriptorAsync Publishing using templates

Properties

The UserPolicy class has these properties.

Property Access type Description
ContentId
Read-only
Gets the unique content ID associated with the protected document.
ContentValidUntil
Read-only
The date the content is valid until.
Description
Read-only
Gets the policy description.
DoesUseDeprecatedAlgorithms
Read-only
Gets the deprecated algorithms flag.
EncryptedAppData
Read-only
Gets the app specific data
IsAuditedExtractAllowed
Read-only
Gets property for allowance of audited extraction.
IsIssuedToOwner
Read-only
Gets the flag indicating if the current user the is the content owner.
IssuedTo
Read-only
Gets the user associated with the protection policy.
Name
Read-only
Gets the name of the policy.
Owner
Read-only
Gets the email address of the content owner.
PolicyDescriptor
Read-only
Gets the policy descriptor.
SerializedPolicy
Read-only
Gets the serialized policy.
SignedAppData
Read-only
Gets app specific data.
TemplateDescriptor
Read-only
Gets the template used to publish the content.
Type
Read-only
Gets the policy type; template based or custom.

Remarks

A UserPolicy object defines the policy that is associated with the protected content. It can be used to examine the rights of the current user as well as to protect or unprotect content.

Thread Safety

Members of this class are not guaranteed to be thread safe.

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