Share via


SPAcl<T>.Add method (String, T, T, SPSite)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function Add ( _
    principalName As String, _
    grantRightsMask As T, _
    denyRightsMask As T, _
    scopeSite As SPSite _
) As SPAce(Of T)
'Usage
Dim instance As SPAcl
Dim principalName As String
Dim grantRightsMask As T
Dim denyRightsMask As T
Dim scopeSite As SPSite
Dim returnValue As SPAce(Of T)

returnValue = instance.Add(principalName, _
    grantRightsMask, denyRightsMask, _
    scopeSite)
public SPAce<T> Add(
    string principalName,
    T grantRightsMask,
    T denyRightsMask,
    SPSite scopeSite
)

Parameters

  • grantRightsMask
    Type: T
  • denyRightsMask
    Type: T

Return value

Type: Microsoft.SharePoint.Administration.SPAce<T>

See also

Reference

SPAcl<T> class

SPAcl<T> members

Add overload

Microsoft.SharePoint.Administration namespace