November Happy Hour will be moved to Thursday December 5th.

Class DefaultPropertySettingsResolver

Resolves IPropertySettings from a property on IContentData

Inheritance
System.Object
DefaultPropertySettingsResolver
Namespace: EPiServer.Core.PropertySettings.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[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
ContentTypeModelRepository modelRepo
IPropertySettingsRepository propertySettingsRepository
IPropertyDefinitionRepository propertyDefinitionRepository
IContentTypeRepository 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.Type settingsType

The type of settings.

System.Int32 propertyDefinitionId

The property definition to read settings for.

Returns
Type Description
IPropertySettings

The settings or null if no settings was found.

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.Type settingsType

The type of settings

System.Type modelType

The content type to read from the settings for

System.String propertyName

The property name to read settings for

Returns
Type Description
IPropertySettings

The settings or null if no settings was found

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.Guid settingsID

The settings identifier.

System.Type settingsType

Type of the settings.

PropertySettingsAttribute propertySettingsAttribute

The property settings attribute.

Returns
Type Description
PropertySettingsWrapper

The PropertySettingsWrapper for a given type and model property.

Extension Methods