Class DataTypeUsageService
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class DataTypeUsageService : IDataTypeUsageService
Constructors
View SourceDataTypeUsageService(IDataTypeUsageRepository, ICoreScopeProvider)
Declaration
public DataTypeUsageService(IDataTypeUsageRepository dataTypeUsageRepository, ICoreScopeProvider scopeProvider)
Parameters
Type | Name | Description |
---|---|---|
IDataTypeUsageRepository | dataTypeUsageRepository | |
ICoreScopeProvider | scopeProvider |
Methods
View SourceHasSavedValues(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. |