Try our conversational search powered by Generative AI!

Class DefaultPropertySettingsResolver

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
DefaultPropertySettingsResolver
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.PropertySettings.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(PropertySettingsResolver))]
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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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