Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyTypeUsageService

    Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class PropertyTypeUsageService : IPropertyTypeUsageService

    Constructors

    View Source

    PropertyTypeUsageService(IPropertyTypeUsageRepository, IContentTypeService, ICoreScopeProvider)

    Initializes a new instance of the PropertyTypeUsageService class.

    Declaration
    public PropertyTypeUsageService(IPropertyTypeUsageRepository propertyTypeUsageRepository, IContentTypeService contentTypeService, ICoreScopeProvider scopeProvider)
    Parameters
    Type Name Description
    IPropertyTypeUsageRepository propertyTypeUsageRepository
    IContentTypeService contentTypeService
    ICoreScopeProvider scopeProvider

    Methods

    View Source

    HasSavedPropertyValuesAsync(Guid, string)

    Checks if a property type has any saved property values associated with it.

    Declaration
    public Task<Attempt<bool, PropertyTypeOperationStatus>> HasSavedPropertyValuesAsync(Guid contentTypeKey, string propertyAlias)
    Parameters
    Type Name Description
    Guid contentTypeKey

    The key of the content type to check.

    string propertyAlias

    The alias of the property to check.

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

    An attempt with status and result if the property type has any property values, otherwise false.

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