System.Xml.XPath.XPathDocument.LookupIdElement C# (CSharp) Метод

LookupIdElement() приватный Метод

Lookup the element node associated with the specified ID value.
private LookupIdElement ( string id, System.Xml.XPath.XPathNode &pageElem ) : int
id string
pageElem System.Xml.XPath.XPathNode
Результат int
        internal int LookupIdElement(string id, out XPathNode[] pageElem) {
            XPathNodeRef nodeRef;

            if (this.idValueMap == null || !this.idValueMap.ContainsKey(id)) {
                pageElem = null;
                return 0;
            }

            // Extract page and index from XPathNodeRef
            nodeRef = this.idValueMap[id];
            pageElem = nodeRef.Page;
            return nodeRef.Index;
        }