SetRepeat Method (Int32)

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

Sets the number of times that the contents of an SrgsItem must be spoken.

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

Syntax

Visual Basic (Declaration)
Public Sub SetRepeat ( _
	count As Integer _
)
Visual Basic (Usage)
Dim instance As SrgsItem
Dim count As Integer

instance.SetRepeat(count)
C#
public void SetRepeat(
	int count
)

Parameters

count
Type: System..::..Int32

The number of times that the item must be spoken.

Exceptions

ExceptionCondition
ArgumentOutOfRangeException

count is less than 0 or greater than 255.

Remarks

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

See Also