Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPAcl<T>.Add Method (String, String, SPIdentifierType, Byte[], 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.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

public SPAce<T> Add(
	string principalName,
	string displayName,
	SPIdentifierType identifierType,
	byte[] identifier,
	T grantRightsMask,
	T denyRightsMask
)

Parameters

principalName
Type: System.String

The login name of the principal.

displayName
Type: System.String

The display name of the principal.

identifierType
Type: Microsoft.SharePoint.Administration.SPIdentifierType

The identifier type of the principal using.

identifier
Type: []

The identifier for a Windows principal.

grantRightsMask
Type: T

The rights to be granted.

denyRightsMask
Type: T

The rights to be denied.

Return Value

Type: Microsoft.SharePoint.Administration.SPAce<T>
A new ACE that is added to the ACL.

ExceptionCondition
ArgumentNullException

identifier is null .

This method adds a new ACE to the ACL.

Show:
© 2015 Microsoft