Share via


GrammarBuilder.AppendRuleReference Method (String, String)

Appends the specified rule of the specified external grammar to the current GrammarBuilder.

Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)

Syntax

'Declaration
Public Sub AppendRuleReference ( _
    path As String, _
    rule As String _
)
public void AppendRuleReference (
    string path,
    string rule
)
public:
void AppendRuleReference (
    String^ path, 
    String^ rule
)
public void AppendRuleReference (
    String path, 
    String rule
)
public function AppendRuleReference (
    path : String, 
    rule : String
)

Parameters

  • path
    A System.String containing the Universal Resource Information Identifier (URI) of an object containing a valid grammar rule definition.
  • rule
    Name of a grammar rule used as the entry point or root on the grammar definition referred to by path.

    This parameter may be null.

Remarks

The URI provided by the path argument may be local or remote. The application calling AppendRuleReference(String) must have read access for the value of path.

If the rule specified by the rule argument is not defined at the URI, an exception will be thrown.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

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

GrammarBuilder Class
GrammarBuilder Members
Microsoft.Speech.Recognition Namespace