Class DefaultPropertySettingsResolver
Resolves IProperty
Namespace: EPiServer.Core.PropertySettings.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class DefaultPropertySettingsResolver : PropertySettingsResolver
Constructors
DefaultPropertySettingsResolver(ContentTypeModelRepository, IPropertySettingsRepository, IPropertyDefinitionRepository, IContentTypeRepository)
Declaration
public DefaultPropertySettingsResolver(ContentTypeModelRepository modelRepo, IPropertySettingsRepository propertySettingsRepository, IPropertyDefinitionRepository propertyDefinitionRepository, IContentTypeRepository contentTypeRepository)
Parameters
Type | Name | Description |
---|---|---|
Content |
modelRepo | |
IProperty |
propertySettingsRepository | |
IProperty |
propertyDefinitionRepository | |
IContent |
contentTypeRepository |
Methods
GetSettings(Type, Int32)
Resolve settings for a property definition.
Declaration
public virtual IPropertySettings GetSettings(Type settingsType, int propertyDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
System. |
settingsType | The type of settings. |
System. |
propertyDefinitionId | The property definition to read settings for. |
Returns
Type | Description |
---|---|
IProperty |
The settings or |
GetSettings(Type, Type, String)
Resolve settings for a property
Declaration
public override IPropertySettings GetSettings(Type settingsType, Type modelType, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System. |
settingsType | The type of settings |
System. |
modelType | The content type to read from the settings for |
System. |
propertyName | The property name to read settings for |
Returns
Type | Description |
---|---|
IProperty |
The settings or |
Overrides
GetSettingsWrapper(Guid, Type, PropertySettingsAttribute)
Gets the property setting wrapper for a given property and the attributes defined on the property.
Declaration
public virtual PropertySettingsWrapper GetSettingsWrapper(Guid settingsID, Type settingsType, PropertySettingsAttribute propertySettingsAttribute)
Parameters
Type | Name | Description |
---|---|---|
System. |
settingsID | The settings identifier. |
System. |
settingsType | Type of the settings. |
Property |
propertySettingsAttribute | The property settings attribute. |
Returns
Type | Description |
---|---|
Property |
The Property |