Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMetricsConsentService

    Provides operations for managing telemetry metrics consent.

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMetricsConsentService

    Methods

    View Source

    GetConsentLevel()

    Gets the current telemetry consent level.

    Declaration
    TelemetryLevel GetConsentLevel()
    Returns
    Type Description
    TelemetryLevel

    The current TelemetryLevel configured for the system.

    View Source

    SetConsentLevelAsync(TelemetryLevel)

    Sets the telemetry consent level asynchronously.

    Declaration
    Task SetConsentLevelAsync(TelemetryLevel telemetryLevel)
    Parameters
    Type Name Description
    TelemetryLevel telemetryLevel

    The TelemetryLevel to set.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

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