DbDataReader 클래스

정의

데이터 소스에서 앞으로만 이동 가능한 행 스트림을 읽습니다.

public ref class DbDataReader abstract : IDisposable, System::Collections::IEnumerable
public ref class DbDataReader abstract : MarshalByRefObject, IAsyncDisposable, IDisposable, System::Collections::IEnumerable, System::Data::IDataReader
public ref class DbDataReader abstract : IDisposable, System::Collections::IEnumerable, System::Data::IDataReader
public ref class DbDataReader abstract : MarshalByRefObject, IDisposable, System::Collections::IEnumerable, System::Data::IDataReader
public ref class DbDataReader abstract : MarshalByRefObject, System::Collections::IEnumerable, System::Data::IDataReader
public ref class DbDataReader abstract : MarshalByRefObject, IAsyncDisposable, System::Collections::IEnumerable, System::Data::IDataReader
public abstract class DbDataReader : IDisposable, System.Collections.IEnumerable
public abstract class DbDataReader : MarshalByRefObject, IAsyncDisposable, IDisposable, System.Collections.IEnumerable, System.Data.IDataReader
public abstract class DbDataReader : IDisposable, System.Collections.IEnumerable, System.Data.IDataReader
public abstract class DbDataReader : MarshalByRefObject, IDisposable, System.Collections.IEnumerable, System.Data.IDataReader
public abstract class DbDataReader : MarshalByRefObject, System.Collections.IEnumerable, System.Data.IDataReader
public abstract class DbDataReader : MarshalByRefObject, IAsyncDisposable, System.Collections.IEnumerable, System.Data.IDataReader
type DbDataReader = class
    interface IEnumerable
    interface IDisposable
type DbDataReader = class
    inherit MarshalByRefObject
    interface IEnumerable
    interface IDataReader
    interface IDataRecord
    interface IDisposable
    interface IAsyncDisposable
type DbDataReader = class
    interface IEnumerable
    interface IDataReader
    interface IDataRecord
    interface IDisposable
type DbDataReader = class
    inherit MarshalByRefObject
    interface IEnumerable
    interface IDataReader
    interface IDataRecord
    interface IDisposable
type DbDataReader = class
    inherit MarshalByRefObject
    interface IDataReader
    interface IDisposable
    interface IDataRecord
    interface IEnumerable
Public MustInherit Class DbDataReader
Implements IDisposable, IEnumerable
Public MustInherit Class DbDataReader
Inherits MarshalByRefObject
Implements IAsyncDisposable, IDataReader, IDisposable, IEnumerable
Public MustInherit Class DbDataReader
Implements IDataReader, IDisposable, IEnumerable
Public MustInherit Class DbDataReader
Inherits MarshalByRefObject
Implements IDataReader, IDisposable, IEnumerable
Public MustInherit Class DbDataReader
Inherits MarshalByRefObject
Implements IDataReader, IEnumerable
Public MustInherit Class DbDataReader
Inherits MarshalByRefObject
Implements IAsyncDisposable, IDataReader, IEnumerable
상속
DbDataReader
상속
DbDataReader
파생
구현

생성자

DbDataReader()

DbDataReader 클래스의 새 인스턴스를 초기화합니다.

속성

Depth

현재 행의 중첩 수준을 나타내는 값을 가져옵니다.

FieldCount

파생 클래스에서 재정의되는 경우 현재 행의 열 수를 가져옵니다.

HasRows

파생 클래스에서 재정의되는 경우 이 DbDataReader가 둘 이상의 행을 포함하는지 여부를 나타내는 값을 가져옵니다.

IsClosed

파생 클래스에서 재정의되는 경우 DbDataReader가 닫혔는지 여부를 나타내는 값을 가져옵니다.

Item[Int32]

파생 클래스에서 재정의되는 경우 지정된 열의 값을 Object의 인스턴스로 가져옵니다.

Item[String]

파생 클래스에서 재정의되는 경우 지정된 열의 값을 Object의 인스턴스로 가져옵니다.

RecordsAffected

파생 클래스에서 재정의되는 경우 SQL 문 실행으로 변경, 삽입 또는 삭제된 행 수를 가져옵니다.

VisibleFieldCount

표시되는 DbDataReader의 필드 수를 가져옵니다.

메서드

Close()

DbDataReader 개체를 닫습니다.

CloseAsync()

DbDataReader 개체를 비동기적으로 닫습니다.

CreateObjRef(Type)

원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
Dispose()

DbDataReader 클래스의 현재 인스턴스에서 사용하는 모든 리소스를 해제합니다.

Dispose(Boolean)

DbDataReader에서 사용하는 관리되지 않는 리소스를 해제하고, 관리되는 리소스를 선택적으로 해제할 수 있습니다.

DisposeAsync()

DbDataReader 클래스의 현재 인스턴스에서 사용하는 모든 리소스를 비동기식으로 해제합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetBoolean(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 부울로 가져옵니다.

GetByte(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 바이트로 가져옵니다.

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

파생 클래스에서 재정의되는 경우 지정된 인덱스에서 시작하는 지정된 열에서 지정된 바이트 수를 읽은 다음 버퍼의 지정된 위치에서 시작하는 버퍼에 씁니다.

GetChar(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 단일 문자로 가져옵니다.

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

파생 클래스에서 재정의되는 경우 지정된 인덱스에서 시작하는 지정된 열에서 지정된 수의 문자를 읽은 다음 지정된 위치에서 시작하는 버퍼에 씁니다.

GetColumnSchemaAsync(CancellationToken)

GetColumnSchema(DbDataReader)의 비동기 버전입니다. 공급자는 적절한 구현을 재정의해야 합니다. cancellationToken을 선택적으로 적용할 수 있습니다. 기본 구현은 동기 GetColumnSchema(DbDataReader) 호출을 호출하고 완료된 작업을 반환합니다. 기본 구현은 이미 취소된 cancellationToken을 전달하는 경우 취소된 작업을 반환합니다. GetColumnSchema(DbDataReader)에서 throw되는 예외는 반환된 Task Exception 속성을 통해 전달됩니다.

GetData(Int32)

요청된 열의 중첩된 데이터 판독기를 반환합니다.

GetDataTypeName(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 데이터 형식 이름을 가져옵니다.

GetDateTime(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 DateTime 개체로 가져옵니다.

GetDbDataReader(Int32)

요청된 열 서수에 대한 DbDataReader 개체를 반환합니다. 이 개체는 공급자별 구현으로 재정의할 수 있습니다.

GetDecimal(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 Decimal로 가져옵니다.

GetDouble(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 배정밀도 부동 소수점 숫자로 가져옵니다.

GetEnumerator()

파생 클래스에서 재정의되는 경우 데이터 판독기에서 행을 반복하는 데 사용할 수 있는 열거자를 반환합니다.

GetFieldType(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 데이터 형식을 가져옵니다.

GetFieldValue<T>(Int32)

지정된 열의 값을 요청된 형식으로 가져옵니다.

GetFieldValueAsync<T>(Int32)

지정된 열의 값을 요청된 형식으로 비동기적으로 가져옵니다.

GetFieldValueAsync<T>(Int32, CancellationToken)

지정된 열의 값을 요청된 형식으로 비동기적으로 가져옵니다.

GetFloat(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 단정밀도 부동 소수점 숫자로 가져옵니다.

GetGuid(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 GUID(Globally Unique Identifier)로 가져옵니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetInt16(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 16비트 부호 있는 정수로 가져옵니다.

GetInt32(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 32비트 부호 있는 정수로 가져옵니다.

GetInt64(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 64비트 부호 있는 정수로 가져옵니다.

GetLifetimeService()
사용되지 않음.

이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다.

(다음에서 상속됨 MarshalByRefObject)
GetName(Int32)

파생 클래스에서 재정의될 때 0부터 시작하는 열 서수가 지정된 경우 열 이름을 가져옵니다.

GetOrdinal(String)

파생 클래스에서 재정의될 때 열 이름이 지정된 경우 열 서수를 가져옵니다.

GetProviderSpecificFieldType(Int32)

지정된 열의 공급자별 형식을 가져옵니다.

GetProviderSpecificValue(Int32)

지정된 열의 값을 공급자별 형식의 인스턴스로 가져옵니다.

GetProviderSpecificValues(Object[])

현재 행의 컬렉션에서 공급자별 특성 열을 모두 가져옵니다.

GetSchemaTable()

DataTable의 열 메타데이터를 정의하는 DbDataReader을 반환합니다. 실행된 명령이 resultset를 반환하지 않는 경우 또는 NextResult()false를 반환한 후 null을 반환합니다.

GetSchemaTableAsync(CancellationToken)

GetSchemaTable()의 비동기 버전입니다. 공급자는 적절한 구현을 재정의해야 합니다. cancellationToken을 선택적으로 적용할 수 있습니다. 기본 구현은 동기 GetSchemaTable() 호출을 호출하고 완료된 작업을 반환합니다. 기본 구현은 이미 취소된 cancellationToken을 전달하는 경우 취소된 작업을 반환합니다. GetSchemaTable()에서 throw되는 예외는 반환된 Task Exception 속성을 통해 전달됩니다.

GetStream(Int32)

지정된 열에서 데이터를 검색하는 스트림을 가져옵니다.

GetString(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 String의 인스턴스로 가져옵니다.

GetTextReader(Int32)

열에서 데이터를 검색하는 텍스트 판독기를 가져옵니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
GetValue(Int32)

파생 클래스에서 재정의되는 경우 지정된 열의 값을 Object의 인스턴스로 가져옵니다.

GetValues(Object[])

파생 클래스에서 재정의되는 경우 개체의 배열을 현재 행의 열 값으로 채웁니다.

InitializeLifetimeService()
사용되지 않음.

이 인스턴스의 수명 정책을 제어하는 수명 서비스 개체를 가져옵니다.

(다음에서 상속됨 MarshalByRefObject)
IsDBNull(Int32)

파생 클래스에서 재정의되는 경우 열이 존재하지 않거나 누락된 값을 포함하는지 여부를 나타내는 값을 가져옵니다.

IsDBNullAsync(Int32)

열의 값이 존재하지 않거나 누락되었는지 여부를 나타내는 값을 비동기적으로 가져옵니다.

IsDBNullAsync(Int32, CancellationToken)

열의 값이 존재하지 않거나 누락되었는지 여부를 나타내는 값을 비동기적으로 가져옵니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
MemberwiseClone(Boolean)

현재 MarshalByRefObject 개체의 단순 복사본을 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
NextResult()

파생 클래스에서 재정의되는 경우 일괄 문의 결과를 읽을 때 판독기를 다음 결과로 비동기로 이동합니다.

NextResultAsync()

일괄 문의 결과를 읽을 때 판독기를 다음 결과로 비동기로 이동합니다.

NextResultAsync(CancellationToken)

일괄 문의 결과를 읽을 때 판독기를 다음 결과로 비동기로 이동합니다.

Read()

파생 클래스에서 재정의하는 경우 판독기를 결과 집합의 다음 레코드로 이동합니다.

ReadAsync()

판독기를 결과 집합의 다음 레코드로 비동기로 이동합니다.

ReadAsync(CancellationToken)

판독기를 결과 집합의 다음 레코드로 비동기로 이동합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

IDataReader.Close()

이 멤버에 대한 설명은 Close()를 참조하세요.

IDataReader.GetSchemaTable()

이 멤버에 대한 설명은 GetSchemaTable()를 참조하세요.

IDataRecord.GetData(Int32)

이 멤버에 대한 설명은 GetData(Int32)를 참조하세요.

확장 메서드

CanGetColumnSchema(DbDataReader)

DbDataReader에서 열 스키마를 가져올 수 있는지를 나타내는 값을 가져옵니다.

GetColumnSchema(DbDataReader)

DbDataReader에 대한 열 스키마(DbColumn 컬렉션)를 가져옵니다.

GetBoolean(DbDataReader, String)

지정된 열의 값에 해당하는 Boolean 값을 가져옵니다.

GetByte(DbDataReader, String)

지정된 열의 값에 해당하는 바이트 값을 가져옵니다.

GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32)

지정된 인덱스에서 시작하는 지정된 열에서 지정된 바이트 수를 읽은 다음 버퍼의 지정된 위치에서 시작하는 버퍼에 씁니다.

GetChar(DbDataReader, String)

지정한 열의 값을 단일 문자로 가져옵니다.

GetChars(DbDataReader, String, Int64, Char[], Int32, Int32)

지정된 인덱스에서 시작하는 지정된 열에서 지정된 수의 문자를 읽은 다음 지정된 위치에서 시작하는 버퍼에 씁니다.

GetData(DbDataReader, String)

요청된 열의 중첩된 데이터 판독기를 반환합니다.

GetDataTypeName(DbDataReader, String)

지정된 열의 데이터 형식 이름을 가져옵니다.

GetDateTime(DbDataReader, String)

지정된 열의 값에 해당하는 DateTime 개체를 가져옵니다.

GetDecimal(DbDataReader, String)

Decimal으로 지정된 열 값을 가져옵니다.

GetDouble(DbDataReader, String)

지정한 열의 값을 배정밀도 부동 소수점 숫자로 가져옵니다.

GetFieldType(DbDataReader, String)

지정된 열의 데이터 형식을 가져옵니다.

GetFieldValue<T>(DbDataReader, String)

지정된 열의 값을 요청된 형식으로 가져옵니다.

GetFieldValueAsync<T>(DbDataReader, String, CancellationToken)

지정된 열의 값을 요청된 형식으로 비동기적으로 가져옵니다.

GetFloat(DbDataReader, String)

지정된 열의 값에 해당하는 단정밀도 부동 소수점 숫자를 가져옵니다.

GetGuid(DbDataReader, String)

지정한 열의 값을 GUID(Globally Unique Identifier)로 가져옵니다.

GetInt16(DbDataReader, String)

지정된 열의 값을 16비트 부호 있는 정수로 가져옵니다.

GetInt32(DbDataReader, String)

지정된 열의 값에 해당하는 32비트 부호 있는 정수를 가져옵니다.

GetInt64(DbDataReader, String)

지정된 열의 값에 해당하는 64비트 부호 있는 정수를 가져옵니다.

GetProviderSpecificFieldType(DbDataReader, String)

지정된 열의 공급자별 형식을 가져옵니다.

GetProviderSpecificValue(DbDataReader, String)

지정된 열의 값을 공급자별 형식의 인스턴스로 가져옵니다.

GetStream(DbDataReader, String)

지정된 열에서 데이터를 검색하는 스트림을 가져옵니다.

GetString(DbDataReader, String)

지정된 열의 값을 String의 인스턴스로 가져옵니다.

GetTextReader(DbDataReader, String)

열에서 데이터를 검색하는 텍스트 판독기를 가져옵니다.

GetValue(DbDataReader, String)

지정된 열의 값을 Object의 인스턴스로 가져옵니다.

IsDBNull(DbDataReader, String)

존재하지 않거나 누락된 값이 열에 포함되었는지 여부를 나타내는 값을 가져옵니다.

IsDBNullAsync(DbDataReader, String, CancellationToken)

열의 값이 존재하지 않거나 누락되었는지 여부를 나타내는 값을 비동기적으로 가져옵니다.

Cast<TResult>(IEnumerable)

IEnumerable의 요소를 지정된 형식으로 캐스팅합니다.

OfType<TResult>(IEnumerable)

지정된 형식에 따라 IEnumerable의 요소를 필터링합니다.

AsParallel(IEnumerable)

쿼리를 병렬화할 수 있도록 합니다.

AsQueryable(IEnumerable)

IEnumerableIQueryable로 변환합니다.

ConfigureAwait(IAsyncDisposable, Boolean)

비동기 일회용에서 반환되는 작업을 대기하는 방법을 구성합니다.

적용 대상

추가 정보