Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUmbracoContextAccessor

    Provides access to a TryGetUmbracoContext bool method that will return true if the "current" IUmbracoContext is not null. Provides a Clear() method that will clear the current IUmbracoContext object. Provides a Set() method that til set the current IUmbracoContext object.

    Namespace: Umbraco.Cms.Core.Web
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IUmbracoContextAccessor

    Methods

    View Source

    Clear()

    Declaration
    void Clear()
    View Source

    Set(IUmbracoContext)

    Declaration
    void Set(IUmbracoContext umbracoContext)
    Parameters
    Type Name Description
    IUmbracoContext umbracoContext
    View Source

    TryGetUmbracoContext(out IUmbracoContext)

    Declaration
    bool TryGetUmbracoContext(out IUmbracoContext umbracoContext)
    Parameters
    Type Name Description
    IUmbracoContext umbracoContext
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Clear()
      • Set(IUmbracoContext)
      • TryGetUmbracoContext(out IUmbracoContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX