Share via


UserPermission Class (Microsoft.Office.InfoPath)

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

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
Public MustInherit Class UserPermission
'Usage
Dim instance As UserPermission
public abstract class 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 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 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.

Inheritance Hierarchy

System.Object
  Microsoft.Office.InfoPath.UserPermission

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

UserPermission Members
Microsoft.Office.InfoPath Namespace