다음을 통해 공유


SqlFileStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) 메서드

정의

비동기 읽기 작업을 시작합니다.

public:
 override IAsyncResult ^ BeginRead(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ callback, System::Object ^ state);
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state);
override this.BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overrides Function BeginRead (buffer As Byte(), offset As Integer, count As Integer, callback As AsyncCallback, state As Object) As IAsyncResult

매개 변수

buffer
Byte[]

데이터를 읽을 버퍼입니다.

offset
Int32

스트림에서 buffer 읽은 데이터 쓰기를 시작할 바이트 오프셋입니다.

count
Int32

읽을 최대 바이트 수입니다.

callback
AsyncCallback

읽기가 완료되면 호출할 선택적 비동기 콜백입니다.

state
Object

이 특정 비동기 읽기 요청을 다른 요청과 구분하는 사용자 제공 개체입니다.

반환

IAsyncResult 보류 중일 수 있는 비동기 읽기를 나타내는 값입니다.

예외

스트림에서는 데이터 읽기가 지원되지 않습니다.

설명

현재 인스턴스에서 CanRead 읽기를 지원하는지 여부를 확인하려면 이 속성을 사용합니다.

적용 대상

추가 정보