AuthenticationService.BeginSaveUser 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.]
Begins an asynchronous SaveUser operation.
Namespace: System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Protected Friend MustOverride Function BeginSaveUser ( _
user As IPrincipal, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim user As IPrincipal
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = Me.BeginSaveUser(user, _
callback, state)
protected internal abstract IAsyncResult BeginSaveUser(
IPrincipal user,
AsyncCallback callback,
Object state
)
protected public:
virtual IAsyncResult^ BeginSaveUser(
IPrincipal^ user,
AsyncCallback^ callback,
Object^ state
) abstract
abstract BeginSaveUser :
user:IPrincipal *
callback:AsyncCallback *
state:Object -> IAsyncResult
abstract function BeginSaveUser(
user : IPrincipal,
callback : AsyncCallback,
state : Object
) : IAsyncResult
Parameters
- user
Type: System.Security.Principal.IPrincipal
The user to save. This parameter should not be nulla null reference (Nothing in Visual Basic).
- callback
Type: System.AsyncCallback
A callback that should be invoked when the asynchronous call completes.
If the asynchronous call is canceled, the callback should not be invoked. This parameter is optional.
- state
Type: System.Object
The state that should be set into the IAsyncResult this method returns. This parameter is optional.
Return Value
Type: System.IAsyncResult
A handle that can be used to reference this asynchronous call.
Remarks
This method is invoked from SaveUser. Exceptions thrown from this method will prevent the operation from starting and then will be thrown from SaveUser.
See Also
Reference
System.ServiceModel.DomainServices.Client.ApplicationServices Namespace