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
- rule
Type: Microsoft.Speech.Recognition.SrgsGrammar.SrgsRule
The object to reference.
- semanticKey
Type: System.String
The semantic key.
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
Microsoft.Speech.Recognition.SrgsGrammar Namespace