AdomdDataReader 클래스

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.

상속 계층

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

네임스페이스:  Microsoft.AnalysisServices.AdomdClient
어셈블리:  Microsoft.AnalysisServices.AdomdClient(Microsoft.AnalysisServices.AdomdClient.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 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.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Close Closes the AdomdDataReader.
공용 메서드 CreateObjRef 보안에 중요합니다. (MarshalByRefObject에서 상속됨)
공용 메서드 Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
공용 메서드 Equals (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 the value of the specified column as a TimeSpan object.
공용 메서드 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.
공용 메서드 NextResult This member is reserved for future use.
공용 메서드 Read Advances the AdomdDataReader to the next row.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 IEnumerable.GetEnumerator Gets the enumerator that iterates through the collection.

맨 위로 이동

주의

The AdomdDataReader class is the implementation of the [System.Data.IDataReader] interface for ADOMD.NET. All Microsoft .NET Framework data providers implement the [System.Data.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.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.AnalysisServices.AdomdClient 네임스페이스