System.Xml.Schema.NamespaceList.Allows C# (CSharp) Méthode

Allows() public méthode

public Allows ( XmlQualifiedName qname ) : bool
qname XmlQualifiedName
Résultat bool
        public bool Allows(XmlQualifiedName qname) {
            return Allows(qname.Namespace);
        }

Same methods

NamespaceList::Allows ( string ns ) : bool

Usage Example

Exemple #1
0
        public ICollection GetNamespaceListSymbols(NamespaceList list)
        {
            ArrayList list2 = new ArrayList();

            foreach (XmlQualifiedName name in this.names.Keys)
            {
                if ((name != XmlQualifiedName.Empty) && list.Allows(name))
                {
                    list2.Add(this.names[name]);
                }
            }
            if (this.wildcards != null)
            {
                foreach (string str in this.wildcards.Keys)
                {
                    if (list.Allows(str))
                    {
                        list2.Add(this.wildcards[str]);
                    }
                }
            }
            if ((list.Type == NamespaceList.ListType.Any) || (list.Type == NamespaceList.ListType.Other))
            {
                list2.Add(this.last);
            }
            return(list2);
        }
All Usage Examples Of System.Xml.Schema.NamespaceList::Allows