SrgsRuleRef Constructor (Uri, String, String)
Initializes a new instance of the SrgsRuleRef class, specifying the URI of the rule, the identifier of the rule, and the string alias of the semantic dictionary.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Public Sub New ( _
uri As Uri, _
rule As String, _
semanticKey As String _
)
public SrgsRuleRef (
Uri uri,
string rule,
string semanticKey
)
public:
SrgsRuleRef (
Uri^ uri,
String^ rule,
String^ semanticKey
)
public SrgsRuleRef (
Uri uri,
String rule,
String semanticKey
)
public function SrgsRuleRef (
uri : Uri,
rule : String,
semanticKey : String
)
Parameters
- uri
The URI of the rule to reference.
- rule
The identifier of the rule to reference.
- semanticKey
An alias string for the semantic dictionary.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | uri is null. semanticKey is null. |
ArgumentOutOfRangeException | semanticKey is empty. |
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
See Also
Reference
SrgsRuleRef Class
SrgsRuleRef Members
Microsoft.Speech.Recognition.SrgsGrammar Namespace