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

Class ContentModelValidator

Validates a model derived by ContentTypeModel.

Inheritance
System.Object
ContentModelValidator
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class ContentModelValidator : Object

Constructors

ContentModelValidator(IContentTypeRepository)

Initializes a new instance of the ContentModelValidator class.

Declaration
public ContentModelValidator(IContentTypeRepository typeRepository)
Parameters
Type Name Description
IContentTypeRepository typeRepository

The content type repository.

Methods

ThrowSynchronizationException(String)

Throws a synchronization exception.

Declaration
protected Exception ThrowSynchronizationException(string msg)
Parameters
Type Name Description
System.String msg

The error message.

Returns
Type Description
System.Exception

Validate(IEnumerable<ContentTypeModel>)

Validates the specified content type models.

Declaration
public virtual void Validate(IEnumerable<ContentTypeModel> typeModels)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ContentTypeModel> typeModels

The type models.

Extension Methods