SPWorkflowWorkflowRoleCreator.GetWorkflowRoleForGroups Method
Gets a workflow role for a specified group on a specified Microsoft SharePoint Foundation 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 GetWorkflowRoleForGroups ( _
web As SPWeb, _
Name As String _
) As WorkflowRole
'Usage
Dim web As SPWeb
Dim Name As String
Dim returnValue As WorkflowRole
returnValue = SPWorkflowWorkflowRoleCreator.GetWorkflowRoleForGroups(web, _
Name)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.AbstractReturnType)]
public static WorkflowRole GetWorkflowRoleForGroups(
SPWeb web,
string Name
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe website to which the group is associated.
Name
Type: System.StringThe name of the group for which to create the workflow role.
Return Value
Type: System.Workflow.Activities.WorkflowRole
The newly created workflow role for the specified group.
Remarks
This method returns a workflow role for a specified group on a specified website.
See Also
Reference
SPWorkflowWorkflowRoleCreator Class