Partager via


PermissionType Enumeration

Represents a user's permissions.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration PermissionType
'Usage
Dim instance As PermissionType
[FlagsAttribute]
public enum PermissionType

Members

Member name Description
View Allows the user to view (read) the form. (The Read and View permissions are equivalent.)
Edit Allows the user to edit the form.
Save Allows the user to save the form.
Extract Allows a user with the Read permission to copy content in the form.
Print Allows the user to print the form.
ObjectModel Allows a user to access the form document programmatically through its object model. Users without the ObjectModel permission cannot use the object model to determine their own permissions.
FullControl Allows the user to add, change, and remove permissions for other users of a form.
Read Allows the user to read (view) the form. (The Read and View permissions are equivalent.)
Change Allows users to view, edit, copy, and save, but not print a form. Equivalent to the Read, Edit, Save, and Extract permissions combined.

Remarks

These enumerated constants are returned by the Permission property of the UserPermission class, and passed as the PermissionType parameter to the Add(String, PermissionType) method of the UserPermissionCollection class.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

See Also

Reference

Microsoft.Office.InfoPath Namespace