Click or drag to resize
AvatarInfoProviderUploadAvatar Method (AvatarInfo, IUploadedFile, Int32, Int32, Int32)
Uploads and resizes (if needed) avatar to specified AvatarInfo and sets its properties.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
public static void UploadAvatar(
	AvatarInfo ai,
	IUploadedFile uploadedFile,
	int maxWidth,
	int maxHeight,
	int maxSideSize
)

Parameters

ai
Type: CMS.MembershipAvatarInfo
uploadedFile
Type: CMS.BaseIUploadedFile
maxWidth
Type: SystemInt32
maxHeight
Type: SystemInt32
maxSideSize
Type: SystemInt32
See Also