Dela via


ITelephonySession.CurrentUICulture Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Gets or sets Thread.CurrentUICulture for the current thread to this value.

Namespace: Microsoft.SpeechServer
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
Property CurrentUICulture As CultureInfo
CultureInfo CurrentUICulture { get; set; }

Property Value

A System.Globalization.CultureInfo that contains the current UI culture for this thread.

Exceptions

Exception type Condition
ArgumentNullException

The property value is null.

Remarks

The value of the CurrentUICulture property follows the definition found in the Internet Engineering Task Force (IETF) RFC1766 specification. The value consists of a two-letter language code, a hyphen, and a two-letter nation code. For example, en-UK represents English (United Kingdom), es-US represents Spanish (United States), and fr-CA represents French (Canada).

Synthesizer, SpeechRecognizer,and Recorder objects are initialized with the CurrentUICulture value of their parent TelephonySession object. This value must match the SrgsDocument.Culture property of the application's grammars.

Thread.CurrentUICulture is set to this value for all subsequent callbacks to this session (including callbacks to recognizers, synthesizer, and recorder).

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Windows Server 2003

See Also

Reference

ITelephonySession Interface
ITelephonySession Members
Microsoft.SpeechServer Namespace