Edit

Share via


UserPermission Class

Definition

Represents a member of the current form's UserPermissionCollection collection.

public ref class UserPermission abstract
public abstract class UserPermission
type UserPermission = class
Public MustInherit Class UserPermission
Inheritance
UserPermission

Remarks

The UserPermission class associates a set of permissions for the current form with a single user and an optional expiration date.

Define a user and the permissions associated with that user with the properties of the UserPermission class, and then use one of the Add(String) methods of the UserPermissionCollection class to add and grant that user permissions on the current form. Use the Remove() method of the UserPermission class or the Remove(String) method of the UserPermissionCollection class to remove a user and the user's permissions.

While some permissions granted through the user interface apply to all users, such as printing and expiration date, you can use the UserPermission object to assign them on a per-user basis with per-user expiration dates.

Constructors

UserPermission()

Properties

ExpirationDate

Gets or sets the optional expiration date for the permissions on the current form assigned to the user associated with an instance of the UserPermission class.

Permission

Gets or sets a value representing the permissions on the current form assigned to the user associated with an instance of the UserPermission class.

UserId

Gets the e-mail address of the user whose permissions on the current form are determined by the specified UserPermission object.

Methods

Remove()

Removes the current UserPermission object from the form's permissions.

Applies to