ISpeechGrammarRule AddResource Method

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechGrammarRule

AddResource Method

The AddResource method adds one or more string name/value pair associated with a rule.

This method is used with an interpreter rule, in which case the interpreter can call the C/C++ function ISpCFGInterpreterSite::GetResourceValue to get the value of a specified resource name.


ISpeechGrammarRule.AddResource(
     ResourceName As String,
     ResourceValue As String
)

Parameters

ResourceName
Specifies the ResourceName.
ResourceValue
Specifies the ResourceValue.

Return Value

None.