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

Class TokenContext

The context in which tokenization should happen.

Inheritance
System.Object
TokenContext
Namespace: DotNetNuke.Services.Tokens
Assembly: DotNetNuke.dll
Syntax
public class TokenContext : object

Properties

| Improve this Doc View Source

AccessingUser

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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.

| Improve this Doc View Source

PropertySource

The context in which tokenization should happen.

Declaration
public Dictionary<string, IPropertyAccess> PropertySource { get; }
Property Value
Type Description
Dictionary<System.String, IPropertyAccess>
| Improve this Doc View Source

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
| Improve this Doc View Source

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.

Extension Methods

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