Click or drag to resize
AvatarInfo Constructor (HttpPostedFile, Int32, Int32, Int32)

Note: This API is now obsolete.

Constructor - Creates a new AvatarInfo object based on the file posted through the upload control.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use 'CMS.Membership.AvatarInfo(CMS.Base.IUploadedFile, System.Int32, System.In32, System.In32)' instead. You can use the 'CMS.Base.UploadExtensions.ToUploadedFile' extensions method for converting 'System.Web.HttpPostedFile' to the 'CMS.Base.IUploadedFile'.")]
public AvatarInfo(
	HttpPostedFile postedFile,
	int maxWidth,
	int maxHeight,
	int maxSideSize
)

Parameters

postedFile
Type: System.WebHttpPostedFile
Posted file
maxWidth
Type: SystemInt32
Maximal image width
maxHeight
Type: SystemInt32
Maximal image height
maxSideSize
Type: SystemInt32
Maximal side size
See Also