• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class Utilities

Inheritance
System.Object
Utilities
Namespace: Dnn.PersonaBar.Library.Common
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class Utilities : object

Methods

| Improve this Doc View Source

FixDoublEntityEncoding(String)

Declaration
public static string FixDoublEntityEncoding(string document)
Parameters
Type Name Description
System.String document
Returns
Type Description
System.String
| Improve this Doc View Source

GetProfileAvatar(UserInfo, Int32, Int32, Boolean)

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 = null, int height = null, bool showSuperUsers = true)
Parameters
Type Name Description
UserInfo user

user info.

System.Int32 width

width in pixel.

System.Int32 height

height in pixel.

System.Boolean showSuperUsers

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

Returns
Type Description
System.String

relative user profile picture url.

| Improve this Doc View Source

GetProfileAvatar(Int32)

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

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

user Id.

Returns
Type Description
System.String

user profile picture url.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS