Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Include Protected Members
Include Inherited Members
Represents a collection of role assignments for a securable object.
The SPRoleAssignmentCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
Count | Gets the number of role assignments in the collection. (Overrides SPBaseCollection.Count.) |
![]() |
Id | Gets the ID of the role assignment collection. |
![]() |
Item | Gets the role assignment at the specified index in the collection. |
![]() |
Parent | Obsolete. Gets the parent object that controls the permissions for the object to which the role assignments apply. |
![]() |
ParentSecurableObject | Gets the permissions and role assignments for the collection. |
![]() |
UpgradedPersistedProperties | (Inherited from SPAutoSerializingObject.) |
![]() |
Xml | Gets the role assignment collection in XML format. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Add(SPPrincipal) | Creates a new role assignment for a specified security principal and gives the security principal guest access to objects in the current scope and in all parent scopes. |
![]() |
Add(SPRoleAssignment) | Adds a role assignment to the collection of role assignment objects. |
![]() |
AddToCurrentScopeOnly | Adds a role assignment to the collection of role assignment objects at the current scope. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetAssignmentByPrincipal | Gets the role assignment object based on the specified user or group. |
![]() |
GetEnumerator | Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetObjectData | (Inherited from SPAutoSerializingObject.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
OnDeserialization | (Inherited from SPAutoSerializingObject.) |
![]() |
Remove(Int32) | Removes the user or group at the specified index from the collection. |
![]() |
Remove(SPPrincipal) | Removes the specified user or group from the role assignment collection. |
![]() |
RemoveById | Removes the user or group with the specified identifier (ID) from the role assignment collection. |
![]() |
RemoveFromCurrentScopeOnly | Removes the specified user or group from the current security scope. |
![]() |
ToString | (Inherited from Object.) |
![]() |
UpdateParent | (Inherited from SPAutoSerializingObject.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
ICollection.CopyTo | Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.) |
![]() ![]() |
ICollection.IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.) |
![]() ![]() |
ICollection.SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.) |
Top