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.