System.Object
Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntaxpublic class PropertyTypeUsageService : IPropertyTypeUsageService
Constructors View Source PropertyTypeUsageService(IPropertyTypeUsageRepository, ICoreScopeProvider) Declaration
public PropertyTypeUsageService(IPropertyTypeUsageRepository propertyTypeUsageRepository, ICoreScopeProvider scopeProvider)
Parameters View Source PropertyTypeUsageService(IPropertyTypeUsageRepository, IContentTypeService, ICoreScopeProvider) Declaration
public PropertyTypeUsageService(IPropertyTypeUsageRepository propertyTypeUsageRepository, IContentTypeService contentTypeService, ICoreScopeProvider scopeProvider)
Parameters Methods View Source HasSavedPropertyValues(String)
Checks if a property type has any saved property values associated with it.
Declarationpublic bool HasSavedPropertyValues(string propertyTypeAlias)
Parameters Type Name Description System.String propertyTypeAlias
The alias of the property type to check.
Returns Type Description System.BooleanTrue if the property type has any property values, otherwise false.
View Source HasSavedPropertyValuesAsync(Guid, String)Checks if a property type has any saved property values associated with it.
Declarationpublic async Task<Attempt<bool, PropertyTypeOperationStatus>> HasSavedPropertyValuesAsync(Guid contentTypeKey, string propertyAlias)
Parameters Type Name Description Guid contentTypeKey
The key of the content type to check.
System.String propertyAliasThe alias of the property to check.
Returns Type Description Task<Attempt<System.Boolean, PropertyTypeOperationStatus>>An attempt with status and result if the property type has any property values, otherwise false.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4