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
    Naman
    0

    What is UmbracoContext

    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 6163 posts 24143 karma points MVP 8x admin c-trib
    Mar 28, 2016 @ 14:42
    Alex Skrypnyk
    0

    Hi Naman,

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

    https://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/

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

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft