Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataTypeUsageService

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

    Constructors

    View Source

    DataTypeUsageService(IDataTypeUsageRepository, ICoreScopeProvider)

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

    Methods

    View Source

    HasSavedValues(Int32)

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

    Declaration
    public bool HasSavedValues(int dataTypeId)
    Parameters
    Type Name Description
    System.Int32 dataTypeId

    The ID of the data type to check.

    Returns
    Type Description
    System.Boolean

    True if there are any property values using the data type, otherwise false.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DataTypeUsageService(IDataTypeUsageRepository, ICoreScopeProvider)
    • Methods
      • HasSavedValues(Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX