Internal\SrgsCompiler\AppDomainGrammarProxy.cs (6)
47throw new InvalidOperationException(SR.Get(SRID.ArgumentMismatch));
122throw new FormatException(SR.Get(SRID.RecognizerRuleNotFoundStream, rule));
133throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, _grammarType.FullName, rule), nameof(rule));
142throw new FormatException(SR.Get(SRID.RecognizerInvalidBinaryGrammar));
151throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, ruleClass.FullName, rule), nameof(rule));
224throw new FormatException(SR.Get(SRID.CantFindAConstructor, grammar, rule, FormatConstructorParameters(mis, method)));
Recognition\Grammar.cs (16)
51throw new ArgumentException(SR.Get(SRID.RecognizerGrammarNotFound), nameof(path), e);
107throw new ArgumentException(SR.Get(SRID.StreamMustBeReadable), nameof(stream));
149throw new ArgumentException(SR.Get(SRID.StrongTypedGrammarNotAGrammar), nameof(type));
181throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, typeTarget.Name, typeTarget.Name));
221throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.GrammarInvalidWeight));
246throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.GrammarInvalidPriority));
496throw new ArgumentException(SR.Get(SRID.DictationInvalidTopic), nameof(uri));
743throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, typeTarget.Name, typeTarget.Name));
802throw new FormatException(SR.Get(SRID.CantFindAConstructor, grammar, rule, FormatConstructorParameters(cis)));
919throw new FormatException(SR.Get(SRID.RecognizerInvalidBinaryGrammar));
926throw new ArgumentException(SR.Get(SRID.CannotLoadDotNetSemanticCode));
932throw new ArgumentException(SR.Get(SRID.CannotLoadDotNetSemanticCode), e);
1024throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, _ruleName, _ruleName));
1032throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, _ruleName, _ruleName));
1063throw new ArgumentException(SR.Get(SRID.SapiErrorNoRulesToActivate));
1083throw new ArgumentException(SR.Get(SRID.RecognizerRuleNotFoundStream, rulename));
Recognition\RecognizerBase.cs (54)
134throw new OperationCanceledException(SR.Get(SRID.OperationAborted));
223throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI2, "Weight"));
253throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI2, "Priority"));
267throw new NotSupportedException(SR.Get(SRID.CannotSetPriorityOnDictation));
338throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPICompareOption));
357throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPICompareOption));
372throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI));
380throw new ArgumentException(SR.Get(SRID.ArrayOfNullIllegal), nameof(wordUnits));
396throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI));
404throw new ArgumentException(SR.Get(SRID.ArrayOfNullIllegal), nameof(wordUnits));
427throw new NotSupportedException(SR.Get(SRID.NegativeTimesNotSupported));
431throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI));
459throw new PlatformNotSupportedException(SR.Get(SRID.RecognitionNotSupported));
528throw new InvalidOperationException(SR.Get(SRID.RecognizerAlreadyRecognizing));
532throw new InvalidOperationException(SR.Get(SRID.RecognizerNoInputSource));
554throw new OperationCanceledException(SR.Get(SRID.OperationAborted));
750throw new InvalidOperationException(SR.Get(SRID.RecognizerAlreadyRecognizing));
786throw new InvalidOperationException(SR.Get(SRID.RecognizerAlreadyRecognizing));
885return new NotSupportedException(SR.Get(SRID.RecognitionNotSupportedOn64bit));
889return new PlatformNotSupportedException(SR.Get(SRID.RecognitionNotSupported));
895return new PlatformNotSupportedException(SR.Get(srid));
901exReturn = new InvalidOperationException(SR.Get(srid));
948throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.NegativeTimesNotSupported));
955throw new InvalidOperationException(SR.Get(SRID.RecognizerAlreadyRecognizing));
970throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.NegativeTimesNotSupported));
977throw new InvalidOperationException(SR.Get(SRID.RecognizerAlreadyRecognizing));
1202throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.MaxAlternatesInvalid));
1461throw new ArgumentException(SR.Get(SRID.DictationTopicNotFound, uri), e);
1517throw new FormatException(SR.Get(SRID.SapiErrorRuleNotFound2, ruleName, bstrResourceUri));
1609throw new FormatException(SR.Get(SRID.RecognizerInvalidBinaryGrammar), e);
1613throw new FormatException(SR.Get(SRID.SapiErrorInvalidImport), e);
1617throw new NotSupportedException(SR.Get(SRID.SapiErrorTooManyGrammars), e);
1621throw new FileNotFoundException(SR.Get(SRID.ReferencedGrammarNotFound), e);
1640throw new FormatException(SR.Get(SRID.RecognizerInvalidBinaryGrammar), e);
1667throw new NotSupportedException(SR.Get(SRID.CannotSetPriorityOnDictation));
1688throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI));
1807throw new InvalidOperationException(SR.Get(SRID.SapiErrorTooManyGrammars));
1823throw new InvalidOperationException(SR.Get(SRID.GrammarWrongRecognizer));
1835throw new InvalidOperationException(SR.Get(SRID.GrammarNotLoaded));
1837throw new InvalidOperationException(SR.Get(SRID.GrammarLoadingInProgress));
1839throw new InvalidOperationException(SR.Get(SRID.GrammarLoadFailed));
1841throw new InvalidOperationException(SR.Get(SRID.GrammarAlreadyLoaded));
1883throw new InvalidOperationException(SR.Get(SRID.RecognizerAlreadyRecognizing));
1976throw new FormatException(SR.Get(SRID.RecognizerNoRootRuleToActivate));
1980throw new ArgumentException(SR.Get(SRID.RecognizerRuleNotFoundStream, ruleName), nameof(ruleName));
1987throw new FormatException(SR.Get(SRID.RecognizerNoRootRuleToActivate1, uri));
1991throw new ArgumentException(SR.Get(SRID.RecognizerRuleNotFound, ruleName, uri), nameof(ruleName));
2000throw new COMException(SR.Get(SRID.RecognizerRuleActivationFailed), (int)errorCode);
2624throw new InvalidOperationException(SR.Get(srid));
2634return new InvalidOperationException(SR.Get(srid));
2638return new COMException(SR.Get(SRID.AudioDeviceInternalError), (int)errorCode);
2661throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPICompareOption));
2708throw new InvalidOperationException(SR.Get(SRID.RecognizerUpdateTableTooLarge));
2955throw new NotSupportedException(SR.Get(messageId));
Synthesis\PromptBuilder.cs (16)
29throw new ArgumentException(SR.Get(SRID.InvariantCultureInfo), nameof(culture));
257throw new InvalidOperationException(SR.Get(SRID.PromptBuilderMismatchStyle));
275throw new ArgumentException(SR.Get(SRID.EnumInvalid, "VoiceGender"), nameof(voice));
280throw new ArgumentException(SR.Get(SRID.EnumInvalid, "VoiceAge"), nameof(voice));
345throw new InvalidOperationException(SR.Get(SRID.PromptBuilderMismatchVoice));
369throw new ArgumentException(SR.Get(SRID.InvariantCultureInfo), nameof(culture));
384throw new InvalidOperationException(SR.Get(SRID.PromptBuilderMismatchParagraph));
405throw new ArgumentException(SR.Get(SRID.InvariantCultureInfo), nameof(culture));
421throw new InvalidOperationException(SR.Get(SRID.PromptBuilderMismatchSentence));
779string sMsg = SR.Get(SRID.PromptBuilderInvalideState);
783sMsg += SR.Get(SRID.PromptBuilderStateEnded);
787sMsg += SR.Get(SRID.PromptBuilderStateSentence);
791sMsg += SR.Get(SRID.PromptBuilderStateParagraph);
797sMsg += SR.Get(SRID.PromptBuilderStateStyle);
801sMsg += SR.Get(SRID.PromptBuilderStateVoice);
958throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, SR.Get(SRID.PromptBuilderInvalidElement), currentElement.ToString(), stackElement._state.ToString()));