Class PropertyTypeUsageService
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class PropertyTypeUsageService : IPropertyTypeUsageService
Constructors
View SourcePropertyTypeUsageService(IPropertyTypeUsageRepository, ICoreScopeProvider)
Declaration
public PropertyTypeUsageService(IPropertyTypeUsageRepository propertyTypeUsageRepository, ICoreScopeProvider scopeProvider)
Parameters
Type | Name | Description |
---|---|---|
IPropertyTypeUsageRepository | propertyTypeUsageRepository | |
ICoreScopeProvider | scopeProvider |
Methods
View SourceHasSavedPropertyValues(String)
Checks if a property type has any saved property values associated with it.
Declaration
public 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. |