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
Visual Basic (Declaration) |
---|
Public Sub New ( _ rule As SrgsRule, _ semanticKey As String _ ) |
Visual Basic (Usage) |
---|
Dim rule As SrgsRule Dim semanticKey As String Dim instance As New SrgsRuleRef(rule, semanticKey) |
C# |
---|
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: