Class IconSettings
Runtime-adjustable icon display/behavior settings. Registered as a singleton, so a host can configure initial values at startup (via the platform options) and change them live. Distinct from IconOptions, which holds the upload limits.
public class IconSettings
- Inheritance
-
IconSettings
- Inherited Members
Properties
AllowAdminUpload
Whether administrators (holders of users:manage) may upload an icon for a user.
public bool AllowAdminUpload { get; set; }
Property Value
AllowUserUpload
Whether users may upload their own icon (the profile "Change picture" action).
public bool AllowUserUpload { get; set; }
Property Value
DefaultUserIconUrl
A generic default image URL shown for users with no uploaded icon (used after Gravatar, or instead of it when GravatarEnabled is false). Null falls back to initials.
public string DefaultUserIconUrl { get; set; }
Property Value
GravatarEnabled
Whether the built-in Gravatar fallback is used for users without an uploaded icon.
public bool GravatarEnabled { get; set; }
Property Value
GravatarStyle
Gravatar default-image style used when the email has no Gravatar account — one of
identicon, monsterid, wavatar, retro, robohash, mp
(mystery-person), blank. Default identicon.
public string GravatarStyle { get; set; }