Share via


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)

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

  • Name
    Type: System.String

    The 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

SPWorkflowWorkflowRoleCreator members

Microsoft.SharePoint.Workflow namespace