Class ContentModelValidator
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
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration(typeof(ContentModelValidator))]
public class ContentModelValidator
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. |