Bagikan melalui


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SrgsItem.SetRepeat Method (Int32)

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

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

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

Parameters

  • count
    Type: System.Int32
    The number of times that the item must be spoken.

Exceptions

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

See Also

Reference

SrgsItem Class

SrgsItem Members

SetRepeat Overload

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)