NamespaceSystemLibrary.Common.Episerver
Validator class supports Error, Warning and Information messages displayed upon when editors in the CMS clicks 'Publish'
- Error messages prevents the content from being published
- Info and Warning messages does not prevent the content from being published
Validator<T>
public abstract class Validator<T> : IValidate<T>, IValidate where T : IContentData
Inheritance
Implements
Type Parameters
Name | Description |
---|---|
T |
Methods
Remarks
Message is prefixed with property name (or its display name if it has the display attribute), unless message contains the prefix value already
Remarks
Message is prefixed with property name (or its display name if it has the display attribute), unless message contains the prefix value already
Remarks
Simple check to validate that input in string, xhtmlstring or similar is something more than a blank
Simple check to validate that links at least have a href, does not force a title nor a name
Simple check that content area has at least one itemSimple check that an IList has at least one item
Remarks
Message is prefixed with property name (or its display name if it has the display attribute), unless message contains the prefix value already
Implements
Extension Methods
}