SrgsDocument.Mode Property
Gets or sets the mode for the SrgsDocument class.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Public Property Mode As SrgsGrammarMode
public SrgsGrammarMode Mode { get; set; }
public:
property SrgsGrammarMode Mode {
SrgsGrammarMode get ();
void set (SrgsGrammarMode value);
}
/** @property */
public SrgsGrammarMode get_Mode ()
/** @property */
public void set_Mode (SrgsGrammarMode value)
public function get Mode () : SrgsGrammarMode
public function set Mode (value : SrgsGrammarMode)
Property Value
An SrgsGrammarMode value that describes the current mode of SrgsDocument.
Remarks
The Mode is of type SrgsGrammarMode and is used to inform SrgsDocument of the type of input to expect. The two possible values are Voice and Dtmf. Voice input consists of spoken words, while Dtmf input consists of dual tone multi-frequency (DTMF) tones that are commonly associated with a telephone.
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
SrgsGrammarMode