Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WebClientAsyncResult Class

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

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

Namespace:  System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class WebClientAsyncResult : IAsyncResult

The WebClientAsyncResult type exposes the following members.

  NameDescription
Public propertyAsyncStateGets the object provided in the last parameter to the Begin method asynchronous call.
Public propertyAsyncWaitHandleGets a WaitHandle that is used to wait for an asynchronous operation to complete.
Public propertyCompletedSynchronouslyGets a value indicating whether the Begin call completed synchronously.
Public propertyIsCompletedGets a value indicating whether the asynchronous XML Web service request has completed.
Top
  NameDescription
Public methodAbortCancels an asynchronous XML Web service request.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.