Internal\SrgsParser\XmlParser.cs (16)
151XmlParser.ThrowSrgsException(SRID.InvalidQuotedString);
158XmlParser.ThrowSrgsException(SRID.InvalidQuotedString);
175XmlParser.ThrowSrgsException(SRID.InvalidTokenString);
614XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnInit", id);
619XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnRecognition", id);
951XmlParser.ThrowSrgsException(SRID.EmptyPronunciationString);
956XmlParser.ThrowSrgsException(SRID.MuliplePronunciationString);
970XmlParser.ThrowSrgsException(SRID.EmptyDisplayString);
975XmlParser.ThrowSrgsException(SRID.MultipleDisplayString);
1706XmlParser.ThrowSrgsException(SRID.IncorrectAttributeValue, name, sTag.Substring(iEqual));
1746XmlParser.ThrowSrgsException(SRID.InvalidNameValueProperty, name, sValue);
1774XmlParser.ThrowSrgsException(SRID.MinMaxOutOfRange, minmax, minmax);
1792XmlParser.ThrowSrgsException(SRID.MinMaxOutOfRange, minRepeat, maxRepeat);
1822XmlParser.ThrowSrgsException(SRID.InvalidAttributeDefinedTwice, reader.Value, attribute);
1834XmlParser.ThrowSrgsException(SRID.InvalidRuleId, id);
1869XmlParser.ThrowSrgsException(SRID.RuleAttributeDefinedMultipleTimes, rule);
Recognition\SrgsGrammar\SrgsGrammar.cs (20)
44writer.WriteStartElement("grammar", XmlParser.srgsNamespace);
103writer.WriteAttributeString("sapi", "alphabet", XmlParser.sapiNamespace, alphabet);
113writer.WriteAttributeString("xmlns", XmlParser.srgsNamespace);
117writer.WriteAttributeString("xmlns", "sapi", null, XmlParser.sapiNamespace);
169XmlParser.ThrowSrgsException(SRID.RootNotDefined, _root.Id);
189XmlParser.ThrowSrgsException(SRID.InvalidSemanticProcessingType);
223XmlParser.ThrowSrgsException(SRID.RootNotDefined, _sRoot);
228foreach (XmlParser.ForwardReference script in _scriptsForwardReference)
237XmlParser.ThrowSrgsException(SRID.InvalidScriptDefinition);
255_scriptsForwardReference.Add(new XmlParser.ForwardReference(rule, code));
559writer.WriteAttributeString("sapi", "language", XmlParser.sapiNamespace, _language);
565writer.WriteAttributeString("sapi", "namespace", XmlParser.sapiNamespace, _namespace);
573writer.WriteAttributeString("sapi", "codebehind", XmlParser.sapiNamespace, sFile);
580writer.WriteAttributeString("sapi", "debug", XmlParser.sapiNamespace, "True");
592writer.WriteStartElement("sapi", "assemblyReference", XmlParser.sapiNamespace);
593writer.WriteAttributeString("sapi", "assembly", XmlParser.sapiNamespace, sAssembly);
602writer.WriteStartElement("sapi", "importNamespace", XmlParser.sapiNamespace);
603writer.WriteAttributeString("sapi", "namespace", XmlParser.sapiNamespace, sNamespace);
633writer.WriteStartElement("sapi", "script", XmlParser.sapiNamespace);
686private List<XmlParser.ForwardReference> _scriptsForwardReference = new();
Recognition\SrgsGrammar\SrgsRule.cs (16)
25XmlParser.ValidateRuleId(id);
33XmlParser.ValidateRuleId(id);
76XmlParser.ValidateRuleId(value);
200XmlParser.ThrowSrgsException(SRID.InvalidEmptyRule, "rule", _id);
222writer.WriteAttributeString("sapi", "baseclass", XmlParser.sapiNamespace, _baseclass);
227writer.WriteAttributeString("sapi", "dynamic", XmlParser.sapiNamespace, _dynamic == RuleDynamic.True ? "true" : "false");
233writer.WriteAttributeString("sapi", "onInit", XmlParser.sapiNamespace, OnInit);
239writer.WriteAttributeString("sapi", "onParse", XmlParser.sapiNamespace, OnParse);
245writer.WriteAttributeString("sapi", "onError", XmlParser.sapiNamespace, OnError);
251writer.WriteAttributeString("sapi", "onRecognition", XmlParser.sapiNamespace, OnRecognition);
298XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnInit", Id);
303XmlParser.ThrowSrgsException(SRID.OnInitOnPublicRule, "OnRecognition", Id);
373writer.WriteStartElement("sapi", "script", XmlParser.sapiNamespace);
374writer.WriteAttributeString("sapi", "rule", XmlParser.sapiNamespace, _id);
385XmlParser.ThrowSrgsException(SRID.ConstructorNotAllowed, _id);
390XmlParser.ThrowSrgsException(SRID.InvalidMethodName);