Export (0) Print
Expand All

SrgsDocument::Culture Property

Gets or sets the culture information for the SrgsDocument instance.

Namespace:  System.Speech.Recognition.SrgsGrammar
Assembly:  System.Speech (in System.Speech.dll)

public:
property CultureInfo^ Culture {
	CultureInfo^ get ();
	void set (CultureInfo^ value);
}

Property Value

Type: System.Globalization::CultureInfo
A CultureInfo object that contains the current culture information for SrgsDocument.

ExceptionCondition
ArgumentNullException

The value being assigned to Culture is nullptr.

ArgumentException

The value being assigned to Culture is InvariantCulture.

Microsoft Windows and the System.Speech API accept all valid language-country codes. To perform speech recognition using the language specified in the Culture property, a speech recognition engine that supports that language-country code must be installed. The speech recognition engines that shipped with Microsoft Windows 7 work with the following language-country codes.

  • en-GB. English (United Kingdom)

  • en-US. English (United States)

  • de-DE. German (Germany)

  • es-ES. Spanish (Spain)

  • fr-FR. French (France)

  • ja-JP. Japanese (Japan)

  • zh-CN. Chinese (China)

  • zh-TW. Chinese (Taiwan)

Two-letter language codes such as "en", "fr", or "es" are also permitted.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft