Get Locale

API Type

Web Services

Description

Retrieves the default locale for the AgilePoint Server.

Syntax

public virtual string GetLocale()

Parameters

Name Description
None Not Applicable

Output

Locale abbreviation—for example, en-US.

Example

IWFAdminService svc = GetAdminService();
string activeDirectoryLdapPath = ...// for example,
LDAP://ou=Sales,dc=Frabrikam,dc=com
string userFilter = ""; // All Users

try
	{
    string locale = svc.GetLocale();
    Console.WriteLine("Locale = '{0}'", locale);     
	}

catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}

/*
This example produces the following results:
Locale = 'en-US
*/

Supported Versions

4.6 and higher