SpeechRecognitionEngine::UpdateRecognizerSetting Method (String^, String^)

 

Updates the specified speech recognition engine setting with the specified string value.

Namespace:   System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

public:
void UpdateRecognizerSetting(
	String^ settingName,
	String^ updatedValue
)

Parameters

settingName
Type: System::String^

The name of the setting to update.

updatedValue
Type: System::String^

The new value for the setting.

Exception Condition
ArgumentNullException

settingName is null.

ArgumentException

settingName is the empty string ("").

KeyNotFoundException

The recognizer does not have a setting by that name.

With the exception of PersistedBackgroundAdaptation, property values set using the UpdateRecognizerSetting method remain in effect only for the current instance of SpeechRecognitionEngine, after which they revert to their default settings. See UpdateRecognizerSetting for descriptions of supported settings.

.NET Framework
Available since 3.0
Return to top
Show: