Represents a grammar element that contains phrases or other entities that a user can speak to produce a successful recognition.
The SrgsItem type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SrgsItem()()()() | Initializes a new instance of the SrgsItem class. | |
SrgsItem(Int32) | Initializes a new instance of the SrgsItem class and specifies the number of times that its contents must be spoken. | |
SrgsItem(String) | Initializes a new instance of the SrgsItem class and specifies its textual contents. | |
SrgsItem(array<SrgsElement>[]()[][]) | Initializes a new instance of the SrgsItem class and specifies an array of SrgsElement objects to add to this instance. | |
SrgsItem(Int32, Int32) | Initializes a new instance of the SrgsItem class and specifies minimum and maximum repetition counts. | |
SrgsItem(Int32, Int32, array<SrgsElement>[]()[][]) | Initializes a new instance of the SrgsItem class, specifies an array of SrgsElement objects to add to this instance, and sets minimum and maximum repetition counts. | |
SrgsItem(Int32, Int32, String) | Initializes a new instance of the SrgsItem class, specifies the text associated with the item, and sets minimum and maximum repetition counts. |
Properties
Name | Description | |
---|---|---|
Elements | Gets the collection of objects contained by the SrgsItem instance. | |
MaxRepeat | Gets the maximum number of times that a user can speak the contents of the SrgsItem. | |
MinRepeat | Gets the minimum number of times that a user can speak the contents of the SrgsItem. | |
RepeatProbability | Gets or sets the probability that a user will repeat the contents of this SrgsItem instance. | |
Weight | Gets or sets a multiplying factor that adjusts the likelihood that an SrgsItem in an SrgsOneOf object will be spoken. |
Methods
Name | Description | |
---|---|---|
Add | Adds an object to the collection of objects contained in this SrgsItem instance. | |
CreateObjRef | (Inherited from MarshalByRefObject.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetLifetimeService | (Inherited from MarshalByRefObject.) | |
GetType | (Inherited from Object.) | |
InitializeLifetimeService | (Inherited from MarshalByRefObject.) | |
MemberwiseClone()()()() | (Inherited from Object.) | |
MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) | |
SetRepeat(Int32) | Sets the number of times that the contents of an SrgsItem must be spoken. | |
SetRepeat(Int32, Int32) | Sets the minimum number of times and the maximum number of times that an item can be spoken. | |
ToString | (Inherited from Object.) |