Class ContentModelValidator

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates a model derived by ContentTypeModel.

Inheritance
System.Object
ContentModelValidator
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.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(ContentModelValidator))]
public class ContentModelValidator

Constructors

ContentModelValidator(IContentTypeRepository)

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

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

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