| Methods / User Delegation | 
| Name | Type | Description | 
|---|---|---|
| delegation | WFDelegation | An object that specifies the details of the delegation rule, including the user whose tasks will be delegated and the designated user to whom to delegate the tasks. | 
IWFAdminService svc = GetAdminService();
WFDelegation delegation = new WFDelegation();
delegation.DelegationID = ...// unique ID
delegation.FromUser = ...// from user name
delegation.ToUser = ...// to user name
delegation.StartDate = ... // start date
delegation.EndDate = ...// end date
try
	{
WFDelegation updatedDelegation = svc.UpdateDelegation( delegation );
	}
catch (Exception ex)
	{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}