private SearchResultAttributeCollection AttributesHelper()
 {
     SearchResultAttributeCollection attributes = new SearchResultAttributeCollection();
     XmlNodeList list = this.dsmlNode.SelectNodes("dsml:attr", this.dsmlNS);
     if (list.Count != 0)
     {
         foreach (XmlNode node in list)
         {
             DirectoryAttribute attribute = new DirectoryAttribute((XmlElement) node);
             attributes.Add(attribute.Name, attribute);
         }
     }
     return attributes;
 }
예제 #2
0
        private SearchResultAttributeCollection AttributesHelper()
        {
            SearchResultAttributeCollection searchResultAttributeCollection = new SearchResultAttributeCollection();
            XmlNodeList xmlNodeLists = this.dsmlNode.SelectNodes("dsml:attr", this.dsmlNS);

            if (xmlNodeLists.Count != 0)
            {
                foreach (XmlNode xmlNodes in xmlNodeLists)
                {
                    DirectoryAttribute directoryAttribute = new DirectoryAttribute((XmlElement)xmlNodes);
                    searchResultAttributeCollection.Add(directoryAttribute.Name, directoryAttribute);
                }
            }
            return(searchResultAttributeCollection);
        }
예제 #3
0
        private SearchResultAttributeCollection AttributesHelper()
        {
            SearchResultAttributeCollection attributes = new SearchResultAttributeCollection();
            XmlNodeList list = this.dsmlNode.SelectNodes("dsml:attr", this.dsmlNS);

            if (list.Count != 0)
            {
                foreach (XmlNode node in list)
                {
                    DirectoryAttribute attribute = new DirectoryAttribute((XmlElement)node);
                    attributes.Add(attribute.Name, attribute);
                }
            }
            return(attributes);
        }
예제 #4
0
        private SearchResultAttributeCollection AttributesHelper()
        {
            SearchResultAttributeCollection attributes = new SearchResultAttributeCollection();

            XmlNodeList nodeList = _dsmlNode.SelectNodes("dsml:attr", _dsmlNS);

            if (nodeList.Count != 0)
            {
                foreach (XmlNode node in nodeList)
                {
                    Debug.Assert(node is XmlElement);

                    DirectoryAttribute attribute = new DirectoryAttribute((XmlElement)node);
                    attributes.Add(attribute.Name, attribute);
                }
            }

            return(attributes);
        }
예제 #5
0
        private SearchResultAttributeCollection AttributesHelper()
        {
            SearchResultAttributeCollection attributes = new SearchResultAttributeCollection();

            XmlNodeList nodeList = _dsmlNode.SelectNodes("dsml:attr", _dsmlNS);

            if (nodeList.Count != 0)
            {
                foreach (XmlNode node in nodeList)
                {
                    Debug.Assert(node is XmlElement);

                    DirectoryAttribute attribute = new DirectoryAttribute((XmlElement)node);
                    attributes.Add(attribute.Name, attribute);
                }
            }

            return attributes;
        }
예제 #6
0
		private SearchResultAttributeCollection AttributesHelper()
		{
			SearchResultAttributeCollection searchResultAttributeCollection = new SearchResultAttributeCollection();
			XmlNodeList xmlNodeLists = this.dsmlNode.SelectNodes("dsml:attr", this.dsmlNS);
			if (xmlNodeLists.Count != 0)
			{
				foreach (XmlNode xmlNodes in xmlNodeLists)
				{
					DirectoryAttribute directoryAttribute = new DirectoryAttribute((XmlElement)xmlNodes);
					searchResultAttributeCollection.Add(directoryAttribute.Name, directoryAttribute);
				}
			}
			return searchResultAttributeCollection;
		}