AuthenticationService.SaveUser Method (Boolean)
WCF RIA Services
[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.]
Asynchronously saves the authenticated user to the server with the specified value indicating whether an exception is thrown for errors.
Namespace: System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
'Declaration Public Function SaveUser ( _ throwOnError As Boolean _ ) As SaveUserOperation 'Usage Dim instance As AuthenticationService Dim throwOnError As Boolean Dim returnValue As SaveUserOperation returnValue = instance.SaveUser(throwOnError)
Parameters
- throwOnError
- Type: System.Boolean
true if an unhandled error should result in an exception; otherwise, false.
Return Value
Type: System.ServiceModel.DomainServices.Client.ApplicationServices.SaveUserOperationThe result of the operation.
| Exception | Condition |
|---|---|
| InvalidOperationException | This method is called while another asynchronous operation is still being processed. |
This method starts an operation with no complete action or user state. To handle an operation error, MarkErrorAsHandled can be called from the operation completion callback or from a Completed event handler.
Show: