UserPermissionObject Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a member of the current form's Permission collection.
public interface class UserPermissionObject : Microsoft::Office::Interop::InfoPath::SemiTrust::UserPermission
[System.Runtime.InteropServices.Guid("096cd6cb-0786-11d1-95fa-0080c78ee3bb")]
public interface UserPermissionObject : Microsoft.Office.Interop.InfoPath.SemiTrust.UserPermission
type UserPermissionObject = interface
interface UserPermission
Public Interface UserPermissionObject
Implements UserPermission
- Attributes
- Implements
Remarks
This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeUserPermission.
The UserPermissionObject object 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 the Add(String, Object, Object) method of the Permission object to add and grant that user permissions on the current form. Use theRemove() method of the UserPermission object 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.
Properties
ExpirationDate |
Gets or sets the optional expiration date for the permissions on the current form assigned to the user associated with a UserPermission object. (Inherited from UserPermission) |
Parent |
Returns the parent object for the UserPermission object. (Inherited from UserPermission) |
Permission |
Gets or sets a value representing the permissions on the current form assigned to the user associated with a UserPermission object. (Inherited from UserPermission) |
UserId |
Gets the e-mail address of the user whose permissions on the current form are determined by the specified UserPermission object. (Inherited from UserPermission) |
Methods
Remove() |
Removes the current UserPermission object from the form's permissions. (Inherited from UserPermission) |