Interface IPropertyTypeUsageService
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IPropertyTypeUsageServiceMethods
View SourceHasSavedPropertyValues(String)
Checks if a property type has any saved property values associated with it.
Declaration
bool HasSavedPropertyValues(string propertyTypeAlias)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | propertyTypeAlias | The alias of the property type to check. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the property type has any property values, otherwise false. | 
HasSavedPropertyValuesAsync(Guid, String)
Checks if a property type has any saved property values associated with it.
Declaration
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 | propertyAlias | The 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. |