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

Class ContentNameValidator

Validates that Name of an IContent is set and has a valid format

Inheritance
System.Object
ContentNameValidator
Namespace: EPiServer.Validation.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class ContentNameValidator : Object, IValidate<IContent>, IValidate

Constructors

ContentNameValidator(LocalizationService)

Initializes a new instance of the RequiredPropertyValidator class.

Declaration
public ContentNameValidator(LocalizationService localizationService)
Parameters
Type Name Description
LocalizationService localizationService

The localization service.

Methods

Validate(IContent)

Validates the specified instance.

Declaration
public IEnumerable<ValidationError> Validate(IContent content)
Parameters
Type Name Description
IContent content

The instance.

Returns
Type Description
System.Collections.Generic.IEnumerable<ValidationError>

Implements

Extension Methods