Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IWebProfilerRepository

    Represents a repository for managing web profiler status per user.

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IWebProfilerRepository

    Methods

    View Source

    GetStatus(int)

    Gets the web profiler status for a user.

    Declaration
    bool GetStatus(int userId)
    Parameters
    Type Name Description
    int userId

    The identifier of the user.

    Returns
    Type Description
    bool

    true if the web profiler is enabled for the user; otherwise, false.

    View Source

    SetStatus(int, bool)

    Sets the web profiler status for a user.

    Declaration
    void SetStatus(int userId, bool status)
    Parameters
    Type Name Description
    int userId

    The identifier of the user.

    bool status

    The status to set (true to enable, false to disable).

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX