次の方法で共有


Note

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

SrgsRule.Elements Property

Gets the collection of SrgsElement objects in the SrgsRule instance.

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

Syntax

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

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

Property Value

Type: System.Collections.ObjectModel.Collection<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

Reference

SrgsRule Class

SrgsRule Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)