Share via


SPWorkflowWorkflowRoleCreator.GetWorkflowRoleForPermission method (SPList, SPBasePermissions)

Gets a workflow role for the specified permissions on the specified list.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.AbstractReturnType)> _
Public Shared Function GetWorkflowRoleForPermission ( _
    list As SPList, _
    perm As SPBasePermissions _
) As WorkflowRole
'Usage
Dim list As SPList
Dim perm As SPBasePermissions
Dim returnValue As WorkflowRole

returnValue = SPWorkflowWorkflowRoleCreator.GetWorkflowRoleForPermission(list, _
    perm)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.AbstractReturnType)]
public static WorkflowRole GetWorkflowRoleForPermission(
    SPList list,
    SPBasePermissions perm
)

Parameters

Return value

Type: System.Workflow.Activities.WorkflowRole
The newly created workflow role for the specified permissions.

Remarks

This method returns a workflow role for the specified permissions on the specified list.

See also

Reference

SPWorkflowWorkflowRoleCreator class

SPWorkflowWorkflowRoleCreator members

GetWorkflowRoleForPermission overload

Microsoft.SharePoint.Workflow namespace