SrgsRuleRef Constructor (Uri, String)
Initializes a new instance of the SrgsRuleRef class, specifying the Uniform Resource Identifier (URI) of the grammar to reference and the identifier of the rule.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Public Sub New ( _
uri As Uri, _
rule As String _
)
public SrgsRuleRef (
Uri uri,
string rule
)
public:
SrgsRuleRef (
Uri^ uri,
String^ rule
)
public SrgsRuleRef (
Uri uri,
String rule
)
public function SrgsRuleRef (
uri : Uri,
rule : String
)
Parameters
- uri
The URI of the grammar to reference.
- rule
The identifier of the rule.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | uri is null. rule is null. |
ArgumentOutOfRangeException | rule is empty. |
Remarks
The syntax for uri varies depending on whether it references a rule in the same grammar or in an external grammar.
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