GetFirstAttribute() публичный статический Метод

Return the first attribute of the specified node. If no attribute exist, do not set pageNode or idxNode and return false.
public static GetFirstAttribute ( XPathNode &pageNode, int &idxNode ) : bool
pageNode XPathNode
idxNode int
Результат bool
Пример #1
0
        public override bool MoveToFirstAttribute()
        {
            XPathNode[] pageCurrent = this.pageCurrent;
            int         idxCurrent  = this.idxCurrent;

            if (XPathNodeHelper.GetFirstAttribute(ref this.pageCurrent, ref this.idxCurrent))
            {
                this.pageParent = pageCurrent;
                this.idxParent  = idxCurrent;
                return(true);
            }
            return(false);
        }
        /// <summary>
        /// Position the navigator on the first attribute of the current node and return true.  If no attributes
        /// can be found, return false.
        /// </summary>
        public override bool MoveToFirstAttribute()
        {
            XPathNode[] page = _pageCurrent;
            int         idx  = _idxCurrent;

            if (XPathNodeHelper.GetFirstAttribute(ref _pageCurrent, ref _idxCurrent))
            {
                // Save element parent in order to make node-order comparison simpler
                _pageParent = page;
                _idxParent  = idx;
                return(true);
            }

            return(false);
        }