System.Xml.XmlReader.XmlReader.ReadToDescendant C# (CSharp) Méthode

ReadToDescendant() public méthode

public ReadToDescendant ( string name ) : bool
name string
Résultat bool
		public virtual bool ReadToDescendant (string name)
		{
			if (ReadState == ReadState.Initial) {
				MoveToContent ();
				if (IsStartElement (name))
					return true;
			}
			if (NodeType != XmlNodeType.Element || IsEmptyElement)
				return false;
			int depth = Depth;
			for (Read (); depth < Depth; Read ())
				if (NodeType == XmlNodeType.Element && name == Name)
					return true;
			return false;
		}

Same methods

XmlReader.XmlReader::ReadToDescendant ( string localName, string namespaceURI ) : bool