AvatarInfoProviderGetUserAvatarImage Method |
Returns avatar image tag, if avatar is not defined returns gender depend avatar or user default avatar if is defined.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 9.0.0
Syntax public static string GetUserAvatarImage(
Object avatarID,
Object userID,
int maxSideSize,
int width,
int height,
Object alt
)
Parameters
- avatarID
- Type: SystemObject
Avatar ID - userID
- Type: SystemObject
User ID, load gender avatar for specified user if avatar by avatar id doesn't exist - maxSideSize
- Type: SystemInt32
Max side size - width
- Type: SystemInt32
Image width - height
- Type: SystemInt32
Image height - alt
- Type: SystemObject
Image alternate text
Return Value
Type:
StringSee Also