AuthenticationBase<T>.UpdateUser 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.]

Updates the profile for the authenticated user.

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

Syntax

'Declaration
Public Sub UpdateUser ( _
    user As T _
)
'Usage
Dim instance As AuthenticationBase
Dim user As T

instance.UpdateUser(user)
public void UpdateUser(
    T user
)
public:
virtual void UpdateUser(
    T user
) sealed
abstract UpdateUser : 
        user:'T -> unit 
override UpdateUser : 
        user:'T -> unit 
public final function UpdateUser(
    user : T
)

Parameters

  • user
    Type: T
    The updated user.

Implements

IAuthentication<T>.UpdateUser(T)

Exceptions

Exception Condition
UnauthorizedAccessException

The authenticated identity does not have the correct permissions to update the user.

Remarks

By default, the user is persisted to the ProfileBase. When writing the user to the profile, the service copies each property in T to the corresponding value in the profile. This behavior can be tailored by marking specified properties with the T:System.ServiceModel.DomainServices.Server.ApplicationServices.ProfileUsageAttribute.

See Also

Reference

AuthenticationBase<T> Class

System.ServiceModel.DomainServices.Server.ApplicationServices Namespace