Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataTypeUsageService

    Provides services for checking data type usage information.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class DataTypeUsageService : IDataTypeUsageService

    Constructors

    View Source

    DataTypeUsageService(IDataTypeUsageRepository, IDataTypeService, ICoreScopeProvider)

    Initializes a new instance of the DataTypeUsageService class.

    Declaration
    public DataTypeUsageService(IDataTypeUsageRepository dataTypeUsageRepository, IDataTypeService dataTypeService, ICoreScopeProvider scopeProvider)
    Parameters
    Type Name Description
    IDataTypeUsageRepository dataTypeUsageRepository

    The data type usage repository.

    IDataTypeService dataTypeService

    The data type service.

    ICoreScopeProvider scopeProvider

    The scope provider.

    Methods

    View Source

    HasSavedValuesAsync(Guid)

    Checks if there are any saved property values using a given data type.

    Declaration
    public Task<Attempt<bool, DataTypeOperationStatus>> HasSavedValuesAsync(Guid dataTypeKey)
    Parameters
    Type Name Description
    Guid dataTypeKey

    The key of the data type to check.

    Returns
    Type Description
    Task<Attempt<bool, DataTypeOperationStatus>>

    An attempt with status and result if there are any property values using the data type, otherwise false.

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