System.Xml.XmlBaseReader.GetAttributeNode C# (CSharp) Méthode

GetAttributeNode() private méthode

private GetAttributeNode ( int index ) : XmlAttributeNode
index int
Résultat XmlAttributeNode
        private XmlAttributeNode GetAttributeNode(int index)
        {
            if (!_node.CanGetAttribute)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.XmlElementAttributes)));
            if (index < 0)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.ValueMustBeNonNegative)));
            if (index >= _attributeCount)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.OffsetExceedsBufferSize, _attributeCount)));
            return _attributeNodes[index];
        }

Same methods

XmlBaseReader::GetAttributeNode ( XmlDictionaryString localName, XmlDictionaryString namespaceUri ) : XmlAttributeNode
XmlBaseReader::GetAttributeNode ( string name ) : XmlAttributeNode
XmlBaseReader::GetAttributeNode ( string localName, string namespaceUri ) : XmlAttributeNode