HttpBaseProtocolFilter.SendRequestAsync(HttpRequestMessage) 메서드

정의

HttpBaseProtocolFilter를 비동기 작업으로 사용하여 HTTP 요청을 보냅니다.

public:
 virtual IAsyncOperationWithProgress<HttpResponseMessage ^, HttpProgress> ^ SendRequestAsync(HttpRequestMessage ^ request) = SendRequestAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<HttpResponseMessage, HttpProgress> SendRequestAsync(HttpRequestMessage const& request);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<HttpResponseMessage,HttpProgress> SendRequestAsync(HttpRequestMessage request);
function sendRequestAsync(request)
Public Function SendRequestAsync (request As HttpRequestMessage) As IAsyncOperationWithProgress(Of HttpResponseMessage, HttpProgress)

매개 변수

request
HttpRequestMessage

보낼 HTTP 요청 메시지입니다.

반환

비동기 작업을 나타내는 개체입니다.

구현

특성

설명

이 작업은 차단되지 않습니다. 반환된 IAsyncOperationWithProgress ( HttpResponseMessageHttpProgress)는 전체 HTTP 응답 메시지를 받으면 완료됩니다.

다음은 이 함수가 throw하는 예외입니다.

E_INVALIDARG

request 매개 변수는 null 참조(Visual Basic에서는 Nothing)였습니다.

E_ILLEGAL_METHOD_CALL

요청 메시지는 HttpBaseProtocolFilter instance 이미 전송되었습니다.

적용 대상