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 SourceFixDoublEntityEncoding(String)
Declaration
public static string FixDoublEntityEncoding(string document)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | document |
Returns
| Type | Description |
|---|---|
| System.String |
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. |
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. |