SrgsItem Constructor (Int32)

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

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

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

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

Parameters

repeatCount
Type: System..::..Int32

The number of times that the item must be spoken.

Exceptions

ExceptionCondition
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