Compartilhar via


Sys.Services ProfileService save Method

Saves the specified profile properties.

Sys.Services.ProfileService.save(propertyNames, saveCompletedCallback, failedCallback, userContext);

Parameters

Parameter

Description

propertyNames

A string array that contains the profile properties to save.

saveCompletedCallback

The function that is called when the save method has finished. The default is null.

failedCallback

The function that is called if the save method has failed. The default is null.

userContext

User context information passed to the callback functions.

Remarks

If the call to the profile service fails, the function that is specified in the error defaultFailedCallback property is called. If the call succeeds, the function that is specified in the defaultLoadCompletedCallback is called.

Example

The following example shows how to use the save method to save the currently authenticated user's profile. This code is part of a complete example found in the Sys.Services.ProfileService class overview.

   Sys.Services.ProfileService.save(null, 
        SaveCompletedCallback, ProfileFailedCallback, null);

See Also

Concepts

Sys.Services.AuthenticationService Class

Sys.Net.WebServiceProxy Class