Click or drag to resize
PersonaPictureImgTagGeneratorGenerateImgTag Method
Generates img tag which displays persona picture with a specified size.

Namespace: CMS.Personas
Assembly: CMS.Personas (in CMS.Personas.dll) Version: 8.2.23
Syntax
C#
public string GenerateImgTag(
	PersonaInfo persona,
	int imageSideSizeInPx
)

Parameters

persona
Type: CMS.PersonasPersonaInfo
This persona's picture will be displayed
imageSideSizeInPx
Type: SystemInt32
Size of the picture

Return Value

Type: String
HTML which displays persona picture

Implements

IPersonaPictureImgTagGeneratorGenerateImgTag(PersonaInfo, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionpersona is null
ArgumentExceptionimageSideSizeInPx isn't greater than zero
See Also