Show / Hide Table of Contents

Class Utilities

Inheritance
object
Utilities
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Dnn.PersonaBar.Library.Common
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class Utilities

Constructors

Utilities()

Declaration
public Utilities()

Methods

FixDoublEntityEncoding(string)

Declaration
public static string FixDoublEntityEncoding(string document)
Parameters
Type Name Description
string document
Returns
Type Description
string

GetProfileAvatar(UserInfo, int, int, bool)

Returns a relative URL for the user profile image while removing that of the deleted and super users.

Declaration
public static string GetProfileAvatar(UserInfo user, int width = 64, int height = 64, bool showSuperUsers = true)
Parameters
Type Name Description
UserInfo user

user info.

int width

width in pixel.

int height

height in pixel.

bool showSuperUsers

true if want show super users user profile picture, false otherwise.

Returns
Type Description
string

relative user profile picture url.

GetProfileAvatar(int)

Get User's standard Profile avatar. The URL is resolved to current portal.

Declaration
public static string GetProfileAvatar(int userId)
Parameters
Type Name Description
int userId

user Id.

Returns
Type Description
string

user profile picture url.

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS