Surrogate With Application Name and Locale

API Type

Web Services

Description

This function is similar to Surrogate, with the ability to set the application name and locale at the same time.Calling the functions SetClientAppName and SetClientLocale is not needed if this function is called.

Syntax

public virtual void Surrogate(string userName, string AppName, string Locale)

Parameters

Name Description

userName

Definition:
The user name for the user.
Type
string
Allowed Values:
A valid user name for a registered AgilePoint user.

AppName

Definition:
Specifies the name of the application.
Type
string
Allowed Values:
A valid, case-sensitive application name.

Locale

Definition:
Specifies the client locale.
Type
string
Allowed Values:
A valid locale in standardized format.
Example:
en-US

Output

None.

Example

public IWFWorkflowService GetWorkflowService(System.Net.ICredentials
credentials, string userName, string AppName, string Locale)
	{
    IWFWorkflowService svc = GetWorkflowService(credentials);
    svc.Surrogate(userName, surrogate AppName, surrogate Locale);
    return svc;
	}
           
public IWFAdminService GetWorkflowService(System.Net.ICredentials credentials)
	{
    //The body is the same as Surrogate
	}

Supported Versions

3.2.0.4 and higher