Click or drag to resize
TransformationHelperGetUserAvatarImageUrl Method (Object, Object, Object, Int32, Int32, Int32)
Returns avatar or gravatar image url, if it is not defined returns gender dependent avatar or user default avatar.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 9.0.0
Syntax
C#
public string GetUserAvatarImageUrl(
	Object avatarID,
	Object userID,
	Object userEmail,
	int maxSideSize,
	int width,
	int height
)

Parameters

avatarID
Type: SystemObject
Avatar ID
userID
Type: SystemObject
User ID, load gender avatar or user avatar for specified user if avatar given by avatar id doesn't exist
userEmail
Type: SystemObject
User e-mail
maxSideSize
Type: SystemInt32
Max side size
width
Type: SystemInt32
Image width
height
Type: SystemInt32
Image height

Return Value

Type: String
See Also