Class DataTypeUsageService
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class DataTypeUsageService : IDataTypeUsageService
Constructors
View SourceDataTypeUsageService(IDataTypeUsageRepository, IDataTypeService, ICoreScopeProvider)
Declaration
public DataTypeUsageService(IDataTypeUsageRepository dataTypeUsageRepository, IDataTypeService dataTypeService, ICoreScopeProvider scopeProvider)
Parameters
Type | Name | Description |
---|---|---|
IDataTypeUsageRepository | dataTypeUsageRepository | |
IDataTypeService | dataTypeService | |
ICoreScopeProvider | scopeProvider |
Methods
View SourceHasSavedValuesAsync(Guid)
Checks if there are any saved property values using a given data type.
Declaration
public async 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<System.Boolean, DataTypeOperationStatus>> | An attempt with status and result if there are any property values using the data type, otherwise false. |