Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Naman 20 posts 101 karma points
    Mar 28, 2016 @ 12:00

    Hi All,

    I am learning Umbraco using ASP.Net MVC and find the term UmbracoContext.

    As per my understanding it allows us to create Umbraco Helper Instance in the class.

    var umbracoHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current);

    Can you please share some link or information which could explain other important features of UmbracoContext?

  • Alex Skrypnyk 5758 posts 21868 karma points MVP 4x admin c-trib
    Mar 28, 2016 @ 14:42
    Alex Skrypnyk

    Hi Naman,

    UmbracoContext is documented as: Class that encapsulates Umbraco information of a specific HTTP request

    You can find a lot of useful info about request in UmbracoContext.Current like: PageId, CurrentMember, Cache and stuff like that.


Please Sign in or register to post replies

Write your reply to: