Class ContentModelValidator
Validates a model derived by Content
Inheritance
System.Object
ContentModelValidator
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class ContentModelValidator : Object
Constructors
ContentModelValidator(IContentTypeRepository)
Initializes a new instance of the Content
Declaration
public ContentModelValidator(IContentTypeRepository typeRepository)
Parameters
Type | Name | Description |
---|---|---|
IContent |
typeRepository | The content type repository. |
Methods
ThrowSynchronizationException(String)
Throws a synchronization exception.
Declaration
protected Exception ThrowSynchronizationException(string msg)
Parameters
Type | Name | Description |
---|---|---|
System. |
msg | The error message. |
Returns
Type | Description |
---|---|
System. |
Validate(IEnumerable<ContentTypeModel>)
Validates the specified content type models.
Declaration
public virtual void Validate(IEnumerable<ContentTypeModel> typeModels)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeModels | The type models. |