Get Delegation

API Type

Web Services

Description

Retrieves a delegation object.

Syntax

public virtual WFDelegation GetDelegation(string delegationID)

Parameters

Name Description

delegationID

Definition:
The unique ID of a delegation object.
Type
string
Allowed Values:
A valid delegation ID.

Output

WFDelegation object that specifies the user whose tasks will be delegated and the designated user to whom to delegate tasks.

Example

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
*/

Supported Versions

3.2.0.4 and higher