RuntimeServiceDeleteGroup Method |
Namespace: Advantys.Workflow.Web.Services.Processes.Runtime
A group can't be deleted if the group contains all of a participant's remaining users and there is no single user associated to the participant.
Optional Parameters.
These parameters can be used in the query string or as parameters of the Headers object in the RuntimeService class instance. See example below.
GroupId (int) | Specifies the Id of the group to delete. Supercedes the group name. |
DirectoryName | Specifies the directory name of the group to delete. |
DirectoryId (int) | Specifies the directory Id of the group to delete. Supercedes the directory name. |
RuntimeServiceWebService.RuntimeService myRuntimeService = new RuntimeServiceWebService.RuntimeService(); RuntimeServiceWebService.GroupHeader myGroupHeader = new RuntimeServiceWebService.GroupHeader(); myRuntimeService.GroupHeaderValue = myGroupHeader; myGroupHeader.GroupId = groupId; myGroupHeader.DirectoryId = directoryId; myRuntimeService.DeleteGroup(null);