System.Xml.Schema.XmlSchemaAny.Allows C# (CSharp) Method

Allows() private method

private Allows ( XmlQualifiedName qname ) : bool
qname System.Xml.XmlQualifiedName
return bool
        internal bool Allows(XmlQualifiedName qname) {
            return namespaceList.Allows(qname.Namespace);
        }

Usage Example

 private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) {
     if (!baseAny.Allows(derivedElement.QualifiedName)) {
         restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString());
         return false;
     }
     if (!IsValidOccurrenceRangeRestriction(derivedElement, baseAny)) {
         restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString());
         return false;
     }
     return true;
 }
All Usage Examples Of System.Xml.Schema.XmlSchemaAny::Allows