Class ModelsBuilderModeValidator
Validates whether the ModelsBuilder mode is not set to In
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.Runtime.RuntimeModeValidators
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ModelsBuilderModeValidator : IRuntimeModeValidator
Constructors
View SourceModelsBuilderModeValidator(IOptionsMonitor<ModelsBuilderSettings>)
Initializes a new instance of the Models
Declaration
public ModelsBuilderModeValidator(IOptionsMonitor<ModelsBuilderSettings> modelsBuilderSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions |
modelsBuilderSettings | The models builder settings. |
Methods
View SourceValidate(RuntimeMode, out String)
Validates configuration based on the specified runtimeMode.
Declaration
public bool Validate(RuntimeMode runtimeMode, out string validationErrorMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| Runtime |
runtimeMode | The runtime mode. |
| System. |
validationErrorMessage | The validation error message. |
Returns
| Type | Description |
|---|---|
| System. |
|