Click or drag to resize
CMSAbstractTransformationGetUserAvatarImageUrl Method (Object, Object, String, Int32, Int32, Int32)
Returns avatar image URL, if avatar is not defined returns gender depend avatar or user default avatar if is defined.

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

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
userEmail
Type: SystemString
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