Share via


SrgsItem Constructor (Int32)

Initializes a new instance of the SrgsItem class, specifying the number of times that the item can be spoken.

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

Syntax

'Declaration

Parameters

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

Exceptions

Exception type Condition
ArgumentOutOfRangeException

repeatCount is negative or is larger than 255.

Remarks

After constructing an SrgsItem object, this constructor sets MaxRepeat and MinRepeat to the value in repeatCount.

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