UpdateUser Method

AuthenticationBase<T>.UpdateUser Method

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.]

Updates the profile for the authenticated user.

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

public void UpdateUser(
	T user
)

Parameters

user
Type: T
The updated user.

Implements

IAuthentication<T>.UpdateUser(T)

ExceptionCondition
UnauthorizedAccessException

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

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 .

Show:
© 2016 Microsoft