Class DictionaryConfigurationValidatorBase
Provides common functionality to validators that rely on data type configuration.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors.Validators
Assembly: Umbraco.Core.dll
Syntax
public abstract class DictionaryConfigurationValidatorBase
Methods
View SourceTryGetConfiguredValue<TValue>(Object, String, out TValue)
Retrieves a typed value from data type dictionary configuration for the provided key.
Declaration
protected static bool TryGetConfiguredValue<TValue>(object dataTypeConfiguration, string key, out TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | dataTypeConfiguration | The data type configuration. |
| System.String | key | The configuration key. |
| TValue | value | The configuration value (if found), otherwise zero. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the configured value was found. |
Type Parameters
| Name | Description |
|---|---|
| TValue |