Share via


SPWorkflowWorkflowRoleCreator.GetWorkflowRoleForPermission method (SPWeb, SPBasePermissions)

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

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

Syntax

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

returnValue = SPWorkflowWorkflowRoleCreator.GetWorkflowRoleForPermission(web, _
    perm)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.AbstractReturnType)]
public static WorkflowRole GetWorkflowRoleForPermission(
    SPWeb web,
    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 website.

See also

Reference

SPWorkflowWorkflowRoleCreator class

SPWorkflowWorkflowRoleCreator members

GetWorkflowRoleForPermission overload

Microsoft.SharePoint.Workflow namespace