UserGroup.AddRoleDef Method

Adds a role definition to the current site collection.

Namespace:  [UserGroup Web service]
Web service reference: http://Site/_vti_bin/UserGroup.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/AddRoleDef", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub AddRoleDef ( _
    roleName As String, _
    description As String, _
    permissionMask As ULong _
)
'Usage
Dim instance As UserGroup
Dim roleName As String
Dim description As String
Dim permissionMask As ULong

instance.AddRoleDef(roleName, description, _
    permissionMask)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/AddRoleDef", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void AddRoleDef(
    string roleName,
    string description,
    ulong permissionMask
)

Parameters

  • roleName
    Type: System.String

    A string that contains the name of the role definition.

  • description
    Type: System.String

    A string that contains the description for the role definition.

  • permissionMask
    Type: System.UInt64

    A 64-bit unsigned integer in 0x00000000 format that represents a Microsoft.SharePoint.SPRights value and specifies permissions for the new role definition. Use the pipe symbol ("|") in Visual C# or Or in Visual Basic to delimit values when creating a custom permission mask that combines permissions.

See Also

Reference

UserGroup Class

UserGroup Members

UserGroup Web Service