WebClientAsyncResult Class

 

Provides an implementation of IAsyncResult for use by XML Web service proxies to implement the standard asynchronous method pattern.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

System.Object
  System.Web.Services.Protocols.WebClientAsyncResult

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class WebClientAsyncResult : IAsyncResult

NameDescription
System_CAPS_pubpropertyAsyncState

Gets the object provided in the last parameter to the Begin method asynchronous call.

System_CAPS_pubpropertyAsyncWaitHandle

Gets a WaitHandle that is used to wait for an asynchronous operation to complete.

System_CAPS_pubpropertyCompletedSynchronously

Gets a value indicating whether the Begin call completed synchronously.

System_CAPS_pubpropertyIsCompleted

Gets a value indicating whether the asynchronous XML Web service request has completed.

NameDescription
System_CAPS_pubmethodAbort()

Cancels an asynchronous XML Web service request.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

When you call the BeginMyMethodName method, where MyMethodName is the synchronous version of the method, on an XML Web service proxy class, an instance of the WebClientAsyncResult is returned. Following the standard asynchronous design pattern, that instance of WebClientAsyncResult must later be passed to EndMyMethodName to complete the asynchronous method call.

For details on calling XML Web services asynchronously, see [<topic://cpconInvokingWebServicesAsynchronously>].

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

IAsyncResult
System.Web.Services.Protocols Namespace
[<topic://cpconInvokingWebServicesAsynchronously>]

Return to top
Show: