Click or drag to resize
CMSAbstractTransformationGetUserAvatarImage Method (Object, Object, Int32, Object)
Returns avatar image tag, 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: 12.0.0
Syntax
C#
public string GetUserAvatarImage(
	Object avatarID,
	Object userID,
	int maxSideSize,
	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
alt
Type: SystemObject
Image alternate text

Return Value

Type: String
See Also