Note

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

SrgsItem Constructor (Int32)

Initializes a new instance of the SrgsItem class and specifies the number of times that its contents must be spoken.

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

Syntax

'Declaration
Public Sub New ( _
    repeatCount As Integer _
)
'Usage
Dim repeatCount As Integer

Dim instance As New SrgsItem(repeatCount)
public SrgsItem(
    int repeatCount
)

Parameters

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

repeatCount is negative or is larger than 255.

Remarks

This constructor sets MaxRepeat and MinRepeat properties of the new SrgsItem to the value in repeatCount.

See Also

Reference

SrgsItem Class

SrgsItem Members

SrgsItem Overload

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)