SrgsItem.RepeatProbability Property

Gets or sets the probability that a user will repeat the item in this SrgsItem instance.

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

Syntax

'Declaration




Property Value

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

Exceptions

Exception type 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 an applicable SrgsItem constructor or by the use of the SetRepeat method.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

SrgsItem Class
SrgsItem Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace