SrgsOneOf Class

Represents a list of alternative words or phrases, any one of which may be used to match speech input.

System.Object
  System.MarshalByRefObject
    Microsoft.Speech.Recognition.SrgsGrammar.SrgsElement
      Microsoft.Speech.Recognition.SrgsGrammar.SrgsOneOf

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

[SerializableAttribute]
public sealed class SrgsOneOf : SrgsElement

A SrgsOneOf object contains a list of alternative words or phrases, any one of which may be recognized when spoken. You can build lists of alternatives from arrays of SrgsItem objects or arrays of String objects. Use the Items property to access the alternative items in the list.

The SrgsOneOf class represents the one-of element from the World Wide Web Consortium (W3C) Speech Recognition Grammar Specification (SRGS) Version 1.0. For information about the SRGS one-of element and details about its support by the Microsoft Speech Platform SDK 11, see one-of Element (Microsoft.Speech).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: