We have moved!

You are currently looking at documentation for Umbraco 8 and older versions.
An automated guess is that docs.umbraco.com/umbraco-cms/reference/querying/umbracohelper/index-vpre_7_3_0 could be the link to the new documentation for Umbraco 9 and newer versions.

    Changes to UmbracoHelper in 7.3.0

    IsProtected

    Previously you had to add a child Id to the IsProtected method on the UmbracoHelper.

    // Old example (pre 7.3)
    @foreach (var child in CurrentPage.Children) {
        <h2>@child.Name</h2>
        @if(Umbraco.IsProtected(child.id, child.Path)){
            <blink>Members only</blink>
        }
    }
    

    In the newer version the child id parameter is removed, only the Path parameter is necessary.