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)
Available in Sandboxed Solutions: No
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
list
Type: Microsoft.SharePoint.SPListThe list to which the permissions are associated.
perm
Type: Microsoft.SharePoint.SPBasePermissionsThe base permissions for which to create the workflow role.
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