Text Property

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Gets or sets the text contained within the SrgsText class instance.

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

Syntax

Visual Basic (Declaration)
Public Property Text As String
	Get
	Set
Visual Basic (Usage)
Dim instance As SrgsText
Dim value As String

value = instance.Text

instance.Text = value
C#
public string Text { get; set; }

Property Value

Type: System..::..String

The text contained within the SrgsText instance.

Exceptions

ExceptionCondition
ArgumentNullException

An attempt is made to set Text to nullNothingnullptrunita null reference (Nothing in Visual Basic).

See Also