GZipStream.EndWrite(IAsyncResult) 메서드

정의

비동기 쓰기 작업의 끝을 처리합니다. (대신 메서드를 WriteAsync(Byte[], Int32, Int32) 사용하는 것이 좋습니다.)

public:
 override void EndWrite(IAsyncResult ^ asyncResult);
public override void EndWrite(IAsyncResult asyncResult);
override this.EndWrite : IAsyncResult -> unit
Public Overrides Sub EndWrite (asyncResult As IAsyncResult)

매개 변수

asyncResult
IAsyncResult

비동기 호출을 나타내는 개체입니다.

예외

기본 스트림은 .입니다 null.

-또는-

기본 스트림이 닫힙니다.

설명

.NET Framework 4.5부터 메서드를 사용하여 Stream.WriteAsync 비동기 쓰기 작업을 수행할 수 있습니다. 이 EndWrite 메서드는 레거시 코드를 지원하기 위해 현재 버전에서 계속 사용할 수 있지만 새 비동기 메서드를 사용하여 비동기 I/O 작업을 보다 쉽게 구현할 수 있습니다. 자세한 내용은 비동기 파일 I/O를 참조하세요.

메서드는 EndWrite 메서드에서 시작된 BeginWrite 비동기 쓰기 작업을 완료합니다.

적용 대상