SPRoleDefinition Constructor (SPRoleDefinition)
Initializes a new instance of the SPRoleDefinition class by copying the permissions of another role definition.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub New ( _
def As SPRoleDefinition _
)
'Usage
Dim def As SPRoleDefinition
Dim instance As New SPRoleDefinition(def)
public SPRoleDefinition(
SPRoleDefinition def
)
Parameters
def
Type: Microsoft.SharePoint.SPRoleDefinitionThe role definition to copy.