View Source
Interface IDataTypeUsageService
Assembly: Umbraco.Core.dll
Syntax
public interface IDataTypeUsageService
Methods
View Source
HasSavedValues(Int32)
Declaration
bool HasSavedValues(int dataTypeId)
Parameters
Type |
Name |
Description |
System.Int32 |
dataTypeId |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasSavedValuesAsync(Guid)
Checks if there are any saved property values using a given data type.
Declaration
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.
|