RepeatProbability Property

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

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..::..Single

The probability, as a floating point value, that the contents of this item will be repeatedly spoken.

Exceptions

ExceptionCondition
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.

See Also