Click or drag to resize
PersonaPictureUrlCreatorCreatePersonaPictureUrl Method
Gets url of the specified persona's picture.

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

Parameters

persona
Type: CMS.PersonasPersonaInfo
Url to the image of this persona will be created
imageSideSizeInPx
Type: SystemInt32
Maximum size of pictures side

Return Value

Type: String
Url leading to the persona's image or to the default image if persona does not have picture set

Implements

IPersonaPictureUrlCreatorCreatePersonaPictureUrl(PersonaInfo, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionpersona is null
ArgumentExceptionimageSideSizeInPx is lower than 1
See Also