DbDataReader 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
데이터 소스에서 앞으로만 이동 가능한 행 스트림을 읽습니다.
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 클래스의 새 인스턴스를 초기화합니다. |
속성
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)의 비동기 버전입니다.
공급자는 적절한 구현을 재정의해야 합니다.
|
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()가 |
GetSchemaTableAsync(CancellationToken) |
GetSchemaTable()의 비동기 버전입니다.
공급자는 적절한 구현을 재정의해야 합니다.
|
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)를 참조하세요. |
확장 메서드
적용 대상
추가 정보
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기