SrgsItem.SetRepeat Method (Int32)

Sets the number of times that an item can be spoken.

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

Syntax

'Declaration




Parameters

  • count
    The number of times that the item can be spoken.

Exceptions

Exception type Condition
ArgumentOutOfRangeException

count is less than 0 or greater than 255.

Remarks

This method sets the MaxRepeat and MinRepeat properties to the value in count.

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