Class TokenContext
The context in which tokenization should happen.
Inheritance
Namespace: DotNetNuke.Services.Tokens
Assembly: DotNetNuke.dll
Syntax
public class TokenContext : object
Properties
| Improve this Doc View SourceAccessingUser
Gets or sets the user object representing the currently accessing user (permission).
Declaration
public UserInfo AccessingUser { get; set; }
Property Value
Type | Description |
---|---|
UserInfo | UserInfo oject. |
CurrentAccessLevel
Gets or sets the current Access Level controlling access to critical user settings.
Declaration
public Scope CurrentAccessLevel { get; set; }
Property Value
Type | Description |
---|---|
Scope | A TokenAccessLevel as defined above. |
DebugMessages
Gets or sets a value indicating whether if DebugMessages are enabled, unknown Tokens are replaced with Error Messages.
Declaration
public bool DebugMessages { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Language
Gets or sets the Format provider as Culture info from stored language or current culture.
Declaration
public CultureInfo Language { get; set; }
Property Value
Type | Description |
---|---|
CultureInfo | An CultureInfo. |
Module
Gets or sets the module settings object to use for 'Module:' token replacement.
Declaration
public ModuleInfo Module { get; set; }
Property Value
Type | Description |
---|---|
ModuleInfo |
Portal
Gets or sets the portal settings object to use for 'Portal:' token replacement.
Declaration
public PortalSettings Portal { get; set; }
Property Value
Type | Description |
---|---|
PortalSettings | PortalSettings oject. |
PropertySource
The context in which tokenization should happen.
Declaration
public Dictionary<string, IPropertyAccess> PropertySource { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, IPropertyAccess> |
Tab
Gets or sets the tab settings object to use for 'Tab:' token replacement.
Declaration
public TabInfo Tab { get; set; }
Property Value
Type | Description |
---|---|
TabInfo |
User
Gets or sets the user object to use for 'User:' token replacement.
Declaration
public UserInfo User { get; set; }
Property Value
Type | Description |
---|---|
UserInfo | UserInfo oject. |