23 writes to restrictionErrorMsg
System.Xml (23)
System\Xml\Schema\SchemaSetCompiler.cs (23)
882restrictionErrorMsg = null; 921restrictionErrorMsg = null; 1210restrictionErrorMsg = Res.GetString(Res.Sch_ForbiddenDerivedParticleForElem); 1238restrictionErrorMsg = Res.GetString(Res.Sch_SeqFromAll, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1241restrictionErrorMsg = Res.GetString(Res.Sch_ForbiddenDerivedParticleForAll); 1264restrictionErrorMsg = Res.GetString(Res.Sch_SeqFromChoice, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1267restrictionErrorMsg = Res.GetString(Res.Sch_ForbiddenDerivedParticleForChoice); 1281restrictionErrorMsg = Res.GetString(Res.Sch_ForbiddenDerivedParticleForSeq); 1313restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromElement, derivedElement.QualifiedName, baseElement.QualifiedName); 1321restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString()); 1325restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString()); 1333restrictionErrorMsg = Res.GetString(Res.Sch_AnyFromAnyRule1); 1337restrictionErrorMsg = Res.GetString(Res.Sch_AnyFromAnyRule2); 1341restrictionErrorMsg = Res.GetString(Res.Sch_AnyFromAnyRule3); 1351restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseFromAny2, derivedGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseAny.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseAny.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1359restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseFromAny1); 1421restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromGroupBase1, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1431restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromGroupBase2, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1441restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromGroupBase3, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1448restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseRestRangeInvalid); 1461restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseRestRangeInvalid); 1465restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseRestNoMap); 1477restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseRestNotEmptiable);
5 references to restrictionErrorMsg
System.Xml (5)
System\Xml\Schema\SchemaSetCompiler.cs (5)
898if (restrictionErrorMsg != null) { 899SendValidationEvent(Res.Sch_InvalidParticleRestrictionDetailed, restrictionErrorMsg, complexType); 925if (restrictionErrorMsg != null) { 926SendValidationEvent(Res.Sch_InvalidParticleRestrictionDetailed, restrictionErrorMsg, derivedParticle); 1476if (restrictionErrorMsg == null) { //If restriction failed on previous check, do not overwrite error