Share via


GrammarBuilder.AppendRuleReference Method (String)

Appends the root 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 _
)
public void AppendRuleReference (
    string path
)
public:
void AppendRuleReference (
    String^ path
)
public void AppendRuleReference (
    String path
)
public function AppendRuleReference (
    path : String
)

Parameters

  • path
    A System.String containing the Universal Resource Information Identifier (URI) of an object containing a valid grammar rule definition.

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.

AppendRuleReference(String) will always append the root rule definition in the URI object to the current instance of GrammarBuilder. If no such rule is defined, 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