IWFAdminService svc = GetAdminService();
string delegationID = ...; // for example, "C9A40F4BDA26481FB822C398C4387901"
try
{
WFDelegation delegation = svc.GetDelegation(delegationID);
Console.WriteLine("Delegation Id:{0}; From User:{1}; To User:{2};
Status:{3}",
delegation.DelegationID,
delegation.FromUser,
delegation.ToUser,
delegation.Status);
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
/* Output
Delegation Id:C9A40F4BDA26481FB822C398C4387901; From
User:VITBDC\yuvarajn; To User:VITBDC\ravis; Status:Canceled
*/