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
- principalName
Type: System.String
- grantRightsMask
Type: T
- denyRightsMask
Type: T
- scopeSite
Type: Microsoft.SharePoint.SPSite
Return value
Type: Microsoft.SharePoint.Administration.SPAce<T>