![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Gets or sets the probability that a user will repeat the contents of this SrgsItem instance.
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Property RepeatProbability As Single Get Set |
Visual Basic (Usage) |
---|
Dim instance As SrgsItem Dim value As Single value = instance.RepeatProbability instance.RepeatProbability = value |
C# |
---|
public float RepeatProbability { get; set; } |
Property Value
Type: System..::..SingleThe probability, as a floating point value, that the contents of this item will be repeatedly spoken.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | An attempt is made to set RepeatProbability to a value that is negative or larger than 1.0. |
Remarks
The property applies only to items whose MinRepeat and MaxRepeat properties have been explicitly set to non-default values, either by a constructor for SrgsItem or by the SetRepeat method.