共用方式為


AdomdDataReader 類別

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

繼承階層

System. . :: . .Object
  System. . :: . .MarshalByRefObject
    Microsoft.AnalysisServices.AdomdServer..::..AdomdDataReader

命名空間:  Microsoft.AnalysisServices.AdomdServer
組件:  msmgdsrv (在 msmgdsrv.dll 中)

語法

'宣告
Public NotInheritable Class AdomdDataReader _
    Inherits MarshalByRefObject _
    Implements IDataReader, IDisposable, IDataRecord, IEnumerable
'用途
Dim instance As AdomdDataReader
public sealed class AdomdDataReader : MarshalByRefObject, 
    IDataReader, IDisposable, IDataRecord, IEnumerable
public ref class AdomdDataReader sealed : public MarshalByRefObject, 
    IDataReader, IDisposable, IDataRecord, IEnumerable
[<SealedAttribute>]
type AdomdDataReader =  
    class
        inherit MarshalByRefObject
        interface IDataReader
        interface IDisposable
        interface IDataRecord
        interface IEnumerable
    end
public final class AdomdDataReader extends MarshalByRefObject implements IDataReader, IDisposable, IDataRecord, IEnumerable

AdomdDataReader 型別公開下列成員。

屬性

  名稱 說明
公用屬性 Depth Gets a value indicating the depth of nesting for the current row.
公用屬性 FieldCount Gets a value indicating the number of columns in the current row.
公用屬性 IsClosed Gets a value indicating whether the data reader is closed.
公用屬性 Item[ ( [ ( 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 T:Microsoft.AnalysisServices.AdomdServer.AdomdDataReader class.
公用屬性 Item[ ( [ ( 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.
公用屬性 RecordsAffected This member is reserved for future use.

上層

方法

  名稱 說明
公用方法 {dtor} This method is for internal use only.
公用方法 Close Closes the AdomdDataReader.
公用方法 CreateObjRef (繼承自 MarshalByRefObject。)
公用方法 Dispose Releases all resources used by the AdomdDataReader.
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetBoolean Returns a Boolean that contains the value from the specified column.
公用方法 GetByte Returns a Byte that contains the value from the specified column.
公用方法 GetBytes This member is reserved for future use.
公用方法 GetChar Returns a Char that contains the value from the specified column.
公用方法 GetChars Returns an array of Char objects that contain a stream of values from the specified column.
公用方法 GetData Returns a System.Data.IDataReader interface to be used when a column points to more remote structured data.
公用方法 GetDataReader Gets an AdomdDataReader object from the specified column.
公用方法 GetDataTypeName Returns a String that contains the full name of the data type for the specified column.
公用方法 GetDateTime Returns a DateTime that contains the value from the specified column.
公用方法 GetDecimal Returns a Decimal that contains the value from the specified column.
公用方法 GetDouble Returns a Double that contains the value from the specified column.
公用方法 GetEnumerator Gets an IEnumerator interface for iterating through the collection.
公用方法 GetFieldType Returns a Type that represents the data type of the specified column.
公用方法 GetFloat Returns a Float that contains the value from the specified column.
公用方法 GetGuid Returns a Guid that contains the value from the specified column.
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetInt16 Returns an Int16 that contains the value from the specified column.
公用方法 GetInt32 Returns an Int32 that contains the value from the specified column.
公用方法 GetInt64 Returns an Int64 that contains the value from the specified column.
公用方法 GetLifetimeService (繼承自 MarshalByRefObject。)
公用方法 GetName Returns the name of the specified column.
公用方法 GetOrdinal Returns the ordinal position of the specified column.
公用方法 GetSchemaTable Returns a DataTable that describes the column metadata of the AdomdDataReader.
公用方法 GetString Returns a String that contains the value from the specified column.
公用方法 GetTimeSpan Gets a TimeSpan that contains the value from the specified column.
公用方法 GetType (繼承自 Object。)
公用方法 GetValue Returns the value for the specified column in its native format.
公用方法 GetValues Gets an array of values for all of the columns in the current row.
公用方法 InitializeLifetimeService (繼承自 MarshalByRefObject。)
公用方法 IsDBNull Returns a Boolean that contains a value indicating whether the column is set to null.
受保護的方法 MemberwiseClone() () () () (繼承自 Object。)
受保護的方法 MemberwiseClone(Boolean) (繼承自 MarshalByRefObject。)
公用方法 NextResult This member is reserved for future use.
公用方法 Read Advances the AdomdDataReader to the next row.
公用方法 ToString (繼承自 Object。)

上層

備註

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

To create a 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.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。