UserPermissionCollection Class
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 the collection of UserPermission objects associated with the current form.
public ref class UserPermissionCollection abstract : System::Collections::IEnumerable
public abstract class UserPermissionCollection : System.Collections.IEnumerable
type UserPermissionCollection = class
interface IEnumerable
Public MustInherit Class UserPermissionCollection
Implements IEnumerable
- Inheritance
-
UserPermissionCollection
- Implements
Remarks
Each UserPermission object in the UserPermissionCollection is used to associate a specific set of rights with an individual user of a form template. The Count property returns the number of UserPermission objects in the collection, and the Add(String), Remove(String) and RemoveAll() methods can be used to manipulate the members of the collection.
Constructors
UserPermissionCollection() |
Properties
Count |
Gets the number of UserPermission objects in the collection. |
Item[Int32] |
Gets the UserPermission object at the specified index in the collection. |
Item[String] |
Get the UserPermission object with the specified UserId from the collection. |
Methods
Add(String, DateTime) |
Add a new user to the current form with an expiration date. |
Add(String, PermissionType, DateTime) |
Creates a new set of permissions on the current form for the specified user with the specified permissions and an expiration date. |
Add(String, PermissionType) |
Adds a new user with the specified permissions. |
Add(String) |
Adds a new user to the current form. |
GetEnumerator() |
Gets an IEnumerator for iterating over the collection. |
Remove(String) |
Removes the UserPermission object with the specified UserId from the collection. |
RemoveAll() |
Removes all UserPermission objects from the collection. |