public void AddParam(string name, string namespaceUri, object parameter) { CheckArgumentNull(name, "name"); CheckArgumentNull(namespaceUri, "namespaceUri"); CheckArgumentNull(parameter, "parameter"); XmlQualifiedName key = new XmlQualifiedName(name, namespaceUri); key.Verify(); this.parameters.Add(key, parameter); }
private void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value) { try { value.Verify(); value.Atomize(base.NameTable); if (this.currentSchema.IsChameleon && (value.Namespace.Length == 0)) { value.SetNamespace(this.currentSchema.TargetNamespace); } if (this.referenceNamespaces[value.Namespace] == null) { base.SendValidationEvent("Sch_UnrefNS", value.Namespace, xso, XmlSeverityType.Warning); } } catch (FormatException exception) { base.SendValidationEvent("Sch_InvalidAttribute", new string[] { attributeName, exception.Message }, exception, xso); } catch (XmlException exception2) { base.SendValidationEvent("Sch_InvalidAttribute", new string[] { attributeName, exception2.Message }, exception2, xso); } }