Click or drag to resize
IAvatarServiceUpdateAvatar Method
Sets or updates existing avatar for specified user.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
bool UpdateAvatar(
	IUploadedFile uploadedFile,
	int userId,
	string siteName
)

Parameters

uploadedFile
Type: CMS.BaseIUploadedFile
Uploaded file
userId
Type: SystemInt32
User id
siteName
Type: SystemString
Site name

Return Value

Type: Boolean
true when avatar was successfully uploaded; otherwise false. Avatar is not uploaded when not detected as image or user is public.
See Also