IAvatarServiceUpdateAvatar Method |
Sets or updates existing avatar for specified user.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax 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:
Booleantrue when avatar was successfully uploaded; otherwise
false. Avatar is not uploaded when not detected as image or user is public.
See Also