Elements Property

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

Gets the collection of SrgsElement objects in the SrgsRule instance.

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

Syntax

Visual Basic (Declaration)
Public ReadOnly Property Elements As Collection(Of SrgsElement)
	Get
Visual Basic (Usage)
Dim instance As SrgsRule
Dim value As Collection(Of SrgsElement)

value = instance.Elements
C#
public Collection<SrgsElement> Elements { get; }

Property Value

Type: System.Collections.ObjectModel..::..Collection<(Of <(<'SrgsElement>)>)>

The collection of elements in the rule.

Remarks

The elements in an SrgsRule object can consist of SrgsItem, SrgsOneOf, SrgsRuleRef, SrgsToken, and SrgsSemanticInterpretationTag objects.

See Also