System.Xml.XPath.XPathNavigator.MoveToFirstAttribute C# (CSharp) Method

MoveToFirstAttribute() public abstract method

public abstract MoveToFirstAttribute ( ) : bool
return bool
        public abstract bool MoveToFirstAttribute();

Usage Example

Example #1
0
        public ParameterNode(XPathNavigator aNode)
        {

            valueNode = String.Empty;
            typeNode = String.Empty;
            ruleValueNode = String.Empty;
            name = String.Empty;

            if (aNode.MoveToFirstAttribute())
            {
                do
                {
                    string nodeName = aNode.Name;
                    switch (nodeName)
                    {
                        case PARAMETER_ATTRS.NAME:
                            name = aNode.Value;
                            break;
                        case PARAMETER_ATTRS.VALUE:
                            valueNode = aNode.Value;
                            break;
                        case PARAMETER_ATTRS.TYPE:
                            typeNode = aNode.Value;
                            break;
                        case PARAMETER_ATTRS.RULE_VALUE:
                            ruleValueNode = aNode.Value;
                            break;
                    }
                } while (aNode.MoveToNextAttribute());
                aNode.MoveToParent();
            }

        }
All Usage Examples Of System.Xml.XPath.XPathNavigator::MoveToFirstAttribute