Class XmlDataReader
Provides a way of reading a forward-only stream of rows from an XML based data source. This class cannot be inherited.
Inheritance
System.Object
System.Data.Common.DbDataReader
XmlDataReader
Implements
System.Collections.IEnumerable
System.Data.IDataReader
System.Data.IDataRecord
System.IDisposable
Inherited Members
System.Data.Common.DbDataReader.Dispose()
System.Data.Common.DbDataReader.GetData(System.Int32)
System.Data.Common.DbDataReader.GetDbDataReader(System.Int32)
System.Data.Common.DbDataReader.GetFieldValue<T>(System.Int32)
System.Data.Common.DbDataReader.GetFieldValueAsync<T>(System.Int32)
System.Data.Common.DbDataReader.GetFieldValueAsync<T>(System.Int32, System.Threading.CancellationToken)
System.Data.Common.DbDataReader.GetProviderSpecificFieldType(System.Int32)
System.Data.Common.DbDataReader.GetProviderSpecificValue(System.Int32)
System.Data.Common.DbDataReader.GetProviderSpecificValues(System.Object[])
System.Data.Common.DbDataReader.GetStream(System.Int32)
System.Data.Common.DbDataReader.GetTextReader(System.Int32)
System.Data.Common.DbDataReader.IsDBNullAsync(System.Int32)
System.Data.Common.DbDataReader.IsDBNullAsync(System.Int32, System.Threading.CancellationToken)
System.Data.Common.DbDataReader.NextResultAsync()
System.Data.Common.DbDataReader.NextResultAsync(System.Threading.CancellationToken)
System.Data.Common.DbDataReader.ReadAsync()
System.Data.Common.DbDataReader.ReadAsync(System.Threading.CancellationToken)
System.Data.Common.DbDataReader.System.Data.IDataRecord.GetData(System.Int32)
System.Data.Common.DbDataReader.System.Data.IDataReader.Close()
System.Data.Common.DbDataReader.System.Data.IDataReader.GetSchemaTable()
System.Data.Common.DbDataReader.VisibleFieldCount
Assembly: Cuemon.Data.XmlClient.dll
Syntax
public sealed class XmlDataReader : StringDataReader, IEnumerable, IDataReader, IDataRecord, IDisposable
Constructors
|
Improve this Doc
XmlDataReader(XmlReader)
Declaration
public XmlDataReader(XmlReader reader)
Parameters
Type |
Name |
Description |
System.Xml.XmlReader |
reader |
The System.Xml.XmlReader object that contains the XML data.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
reader is null.
|
|
Improve this Doc
XmlDataReader(XmlReader, Func<String, Object>)
Declaration
public XmlDataReader(XmlReader reader, Func<string, object> parser)
Parameters
Type |
Name |
Description |
System.Xml.XmlReader |
reader |
The System.Xml.XmlReader object that contains the XML data.
|
System.Func<System.String, System.Object> |
parser |
The function delegate that returns a primitive object whose value is equivalent to the provided System.String value.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
reader is null -or- parser is null.
|
Properties
|
Improve this Doc
Depth
Gets a value indicating the depth of nesting for the current element.
Declaration
public override int Depth { get; }
Property Value
Type |
Description |
System.Int32 |
The level of nesting.
|
Overrides
|
Improve this Doc
HasRows
Gets a value that indicates whether this System.Data.Common.DbDataReader contains one or more rows.
Declaration
public override bool HasRows { get; }
Property Value
Type |
Description |
System.Boolean |
true if this instance has rows; otherwise, false .
|
Overrides
System.Data.Common.DbDataReader.HasRows
Methods
|
Improve this Doc
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
true to release both managed and unmanaged resources; false to release only unmanaged resources.
|
Overrides
|
Improve this Doc
ReadNext()
Advances this instance to the next element of the XML data source.
Declaration
protected override bool ReadNext()
Returns
Type |
Description |
System.Boolean |
true if there are more elements; otherwise, false .
|
Overrides
Implements
System.Collections.IEnumerable
System.Data.IDataReader
System.Data.IDataRecord
System.IDisposable
Extension Methods
ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)