Share via


AuthenticationService.CancelLoadUser Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Cancels an asynchronous LoadUser operation.

Namespace:  System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Protected Friend Overridable Sub CancelLoadUser ( _
    asyncResult As IAsyncResult _
)
'Usage
Dim asyncResult As IAsyncResult

Me.CancelLoadUser(asyncResult)
protected internal virtual void CancelLoadUser(
    IAsyncResult asyncResult
)
protected public:
virtual void CancelLoadUser(
    IAsyncResult^ asyncResult
)
abstract CancelLoadUser : 
        asyncResult:IAsyncResult -> unit 
override CancelLoadUser : 
        asyncResult:IAsyncResult -> unit 
 function CancelLoadUser(
    asyncResult : IAsyncResult
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

asyncResult was not returned from BeginLoadUser or the asynchronous call has already been concluded with a previous call to cancel or end.

NotSupportedException

SupportsCancellation is false.

Remarks

When you override this method, you do not need to call the base method. This method is invoked when a LoadUser operation is canceled. Either this method or EndLoadUser will be invoked to conclude the operation, but not both. After CancelLoadUser is called, the callback passed in to BeginLoadUser should not be invoked. Exceptions thrown from this method will be available in Error.

See Also

Reference

AuthenticationService Class

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace