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)
Available in Sandboxed Solutions: No
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
web
Type: Microsoft.SharePoint.SPWebThe website 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 website.
See Also
Reference
SPWorkflowWorkflowRoleCreator Class
SPWorkflowWorkflowRoleCreator Members