次の方法で共有


SPAcl<T> members

Represents an access control list (ACL).

The SPAcl<T> type exposes the following members.

Constructors

  Name Description
Public method SPAcl<T>() Initializes a new instance of the SPAcl<T> class.
Public method SPAcl<T>(SPAcl<T>)

Top

Properties

  Name Description
Public property AnonymousPermissionMask Gets or sets the permission mask for anonymous access.
Public property Count Gets the number of access control entries (ACEs) in the access control list.
Public property Item[Int32] Gets the access control entry at the specified index in the access control list.
Public property Item[String] Gets the access control entry from the access control list based on the specified principal name.

Top

Methods

  Name Description
Public method Add(SPAce<T>)
Public method Add(String, T, T) Adds a new access control entry (ACE) to the access control list, overwriting any existing ACE for the specified principal based on the specified principal name, granted rights, and denied rights.
Public method Add(String, T, T, SPSite)
Public method Add(String, String, [], T, T) Adds a new access control entry (ACE) to the access control list, overwriting any existing ACE for the specified principal based on the specified principal name, principal display name, security identifier, granted rights, and denied rights.
Public method Add(String, String, SPIdentifierType, [], T, T) Adds a new ACE to the access control list, overwriting any existing ACE for the specified principal based on the specified principal name, principal display name, principal identifier type, security identifier, granted rights, and denied rights.
Protected method CalculatePermissions Calculates permissions for current user.
Public method Clear Clears the access control list.
Public method DoesUserHavePermissions Performs an access check to determine if the current user has the specified permissions.
Public method EffectivePermissions Returns the effective permissions for the current user.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method Init Obsolete. Initializes an instance of the SPAcl<T> class.
Protected method MemberwiseClone (Inherited from Object.)
Public method MigrateUserAccount(String, String) Changes the access control list (ACL) to use the newPrincipalName name in place of oldPrincipalName.
Public method MigrateUserAccount(String, String, IEnumerable<[]>) Changes the ACLs to use newPrincipalName name in place of oldPrincipalName.
Protected method OnAdd Overrides this method to do special processing when an access control entry (ACE) is added.
Public method Remove(String) Removes the specified principal from the access control list based on the specified principal name.
Public method Remove(SPAce<T>) Removes the specified principal from the access control list based on the specified access control entry (ACE).
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through the access control list (ACL).

Top

See also

Reference

SPAcl<T> class

Microsoft.SharePoint.Administration namespace