PipeStream.EndWrite(IAsyncResult) 메서드

정의

보류 중인 비동기 쓰기 요청을 끝냅니다.

public:
 override void EndWrite(IAsyncResult ^ asyncResult);
public override void EndWrite (IAsyncResult asyncResult);
[System.Security.SecurityCritical]
public override void EndWrite (IAsyncResult asyncResult);
override this.EndWrite : IAsyncResult -> unit
[<System.Security.SecurityCritical>]
override this.EndWrite : IAsyncResult -> unit
Public Overrides Sub EndWrite (asyncResult As IAsyncResult)

매개 변수

asyncResult
IAsyncResult

보류 중인 비동기 요청에 대한 참조입니다.

특성

예외

asyncResult이(가) null인 경우

asyncResult가 현재 스트림의 BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) 메서드에서 시작되지 않았습니다.

스트림이 닫혔거나 내부 오류가 발생했습니다.

설명

EndWrite 에 대한 모든 호출에 대해 한 번 호출해야 합니다 BeginWrite. 이 작업은 호출 BeginWrite 된 동일한 코드에서 또는 에 전달되는 BeginWrite콜백에서 수행할 수 있습니다.

사용 된 CanWrite 현재 개체 쓰기 작업을 지원 하는지 여부를 PipeStream 확인 하려면 속성입니다.

파이프가 닫혀 있거나 잘못된 인수가 에 BeginWrite전달되면 적절한 예외가 즉시 발생합니다. 비동기 쓰기 요청 중에 발생하는 오류는 요청을 수행하는 스레드 풀 스레드에서 발생합니다. 코드가 메서드를 호출 EndWrite 할 때 예외가 발생합니다.

적용 대상