Export (0) Print
Expand All

IRequestChannel.EndRequest Method

Completes an asynchronous operation to return a message-based response to a transmitted request.

Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in system.servicemodel.dll)

Message EndRequest (
	IAsyncResult result
)
Message EndRequest (
	IAsyncResult result
)
function EndRequest (
	result : IAsyncResult
) : Message
Not applicable.

Parameters

result

The IAsyncResult returned by a call to the BeginReceive method.

Return Value

The Message received in response to the request.

If the request message is larger that the maximum message size allowed by the binding being used, a QuotaExceededException is thrown. The maximum message size is set by the MaxReceivedMessageSize property. The default value is 65536 bytes.

The following code illustrates how to implement this method:

public Message EndRequest(IAsyncResult result)
{
    return this.InnerChannel.EndRequest(result);
}

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft