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
ファイル: SearchResults.cs プロジェクト: chcosta/corefx
        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
ファイル: SearchResultEntry.cs プロジェクト: nickchal/pash
		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;
		}