Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

AdomdDataReader Class

 

Provides a means of reading a forward-only result set that is obtained by running a command, and can be used to access analytical data sources.

Namespace:   Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

System.Object
  System.MarshalByRefObject
    Microsoft.AnalysisServices.AdomdClient.AdomdDataReader

public sealed class AdomdDataReader : MarshalByRefObject, IDataReader, 
	IDisposable, IDataRecord, IEnumerable

NameDescription
System_CAPS_pubpropertyDepth

Gets a value indicating the depth of nesting for the current row.

System_CAPS_pubpropertyFieldCount

Gets a value indicating the number of columns in the current row.

System_CAPS_pubpropertyIsClosed

Gets a value indicating whether the data reader is closed.

System_CAPS_pubpropertyItem[Int32]

Gets the value of a specified column in its native format, given the ordinal position of the column. In Microsoft Visual C#, this property is the indexer for the AdomdDataReader class.

System_CAPS_pubpropertyItem[String]

Gets the value of a specified column in its native format, given the name of the column. In Microsoft Visual C#, this property is the indexer for the AdomdDataReader class.

System_CAPS_pubpropertyRecordsAffected

This member is reserved for future use.

NameDescription
System_CAPS_pubmethodClose()

Closes the AdomdDataReader.

System_CAPS_pubmethodCreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetBoolean(Int32)

Returns a Boolean that contains the value from the specified column.

System_CAPS_pubmethodGetByte(Int32)

Returns a Byte that contains the value from the specified column.

System_CAPS_pubmethodGetBytes(Int32, Int64, Byte[], Int32, Int32)

This member is reserved for future use.

System_CAPS_pubmethodGetChar(Int32)

Returns a Char that contains the value from the specified column.

System_CAPS_pubmethodGetChars(Int32, Int64, Char[], Int32, Int32)

Returns an array of Char objects that contain a stream of values from the specified column.

System_CAPS_pubmethodGetData(Int32)

Returns a System.Data.IDataReader interface to be used when a column points to more remote structured data.

System_CAPS_pubmethodGetDataReader(Int32)

Gets an AdomdDataReader object from the specified column.

System_CAPS_pubmethodGetDataTypeName(Int32)

Returns a String that contains the full name of the data type for the specified column.

System_CAPS_pubmethodGetDateTime(Int32)

Returns a DateTime that contains the value from the specified column.

System_CAPS_pubmethodGetDecimal(Int32)

Returns a Decimal that contains the value from the specified column.

System_CAPS_pubmethodGetDouble(Int32)

Returns a Double that contains the value from the specified column.

System_CAPS_pubmethodGetEnumerator()

Gets an IEnumerator interface for iterating through the collection.

System_CAPS_pubmethodGetFieldType(Int32)

Returns a Type that represents the data type of the specified column.

System_CAPS_pubmethodGetFloat(Int32)

Returns a Float that contains the value from the specified column.

System_CAPS_pubmethodGetGuid(Int32)

Returns a Guid that contains the value from the specified column.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetInt16(Int32)

Returns an Int16 that contains the value from the specified column.

System_CAPS_pubmethodGetInt32(Int32)

Returns an Int32 that contains the value from the specified column.

System_CAPS_pubmethodGetInt64(Int32)

Returns an Int64 that contains the value from the specified column.

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetName(Int32)

Returns the name of the specified column.

System_CAPS_pubmethodGetOrdinal(String)

Returns the ordinal position of the specified column.

System_CAPS_pubmethodGetSchemaTable()

Returns a DataTable that describes the column metadata of the AdomdDataReader.

System_CAPS_pubmethodGetString(Int32)

Returns a String that contains the value from the specified column.

System_CAPS_pubmethodGetTimeSpan(Int32)

Gets the value of the specified column as a TimeSpan object.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValue(Int32)

Returns the value for the specified column in its native format.

System_CAPS_pubmethodGetValues(Object[])

Gets an array of values for all of the columns in the current row.

System_CAPS_pubmethodInitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodIsDBNull(Int32)

Returns a Boolean that contains a value indicating whether the column is set to null.

System_CAPS_pubmethodNextResult()

This member is reserved for future use.

System_CAPS_pubmethodRead()

Advances the AdomdDataReader to the next row.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Gets the enumerator that iterates through the collection.

The AdomdDataReader class is the implementation of the IDataReader interface for ADOMD.NET. All Microsoft .NET Framework data providers implement the IDataReader interface as a way of quickly reading forward-only result sets.

To create an AdomdDataReader, you must call the ExecuteReader method of the AdomdCommand, rather than directly using a constructor.

While the AdomdDataReader is in use, the AdomdCommand and the associated AdomdConnection is busy serving the AdomdDataReader. While in this state, no operations can be performed on the AdomdConnection or AdomdCommand objects other than closing them. This remains the case until the Close or Dispose method of the AdomdDataReader is called. Changes made to a result set by another process or thread while data is being read may be visible to the user of the AdomdDataReader. However, the precise behavior is timing dependent.

IsClosed and RecordsAffected are the only properties that you can call after the AdomdDataReader is closed.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show:
© 2015 Microsoft