SrgsDocument.Culture Property

Gets or sets the culture information for the SrgsDocument instance.

Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)

Syntax

'Declaration
Public Property Culture As CultureInfo
public CultureInfo Culture { get; set; }
public:
property CultureInfo^ Culture {
    CultureInfo^ get ();
    void set (CultureInfo^ value);
}
/** @property */
public CultureInfo get_Culture ()

/** @property */
public void set_Culture (CultureInfo value)
public function get Culture () : CultureInfo

public function set Culture (value : CultureInfo)

Property Value

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

Exceptions

Exception type Condition
ArgumentNullException

The value being assigned to Culture is null.

ArgumentException

The value being assigned to Culture is System.Globalization.CultureInfo.InvariantCulture.

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

See Also

Reference

SrgsDocument Class
SrgsDocument Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace