Share via


Note

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

SrgsRuleRef Constructor (SrgsRule, String)

Initializes a new instance of the SrgsRuleRef class, specifying the rule to reference and a string that contains a semantic key.

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

Syntax

'Declaration
Public Sub New ( _
    rule As SrgsRule, _
    semanticKey As String _
)
'Usage
Dim rule As SrgsRule
Dim semanticKey As String

Dim instance As New SrgsRuleRef(rule, semanticKey)
public SrgsRuleRef(
    SrgsRule rule,
    string semanticKey
)

Parameters

Remarks

This constructor creates a rule reference to an SrgsRule object within the containing grammar. To create a rule reference to a rule element in an external grammar file, use any of the following constructors:

See Also

Reference

SrgsRuleRef Class

SrgsRuleRef Members

SrgsRuleRef Overload

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)