London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class ContentNameValidator

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates that Name of an IContent is set and has a valid format

Inheritance
System.Object
ContentNameValidator
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.Validation.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[ServiceConfiguration]
public class ContentNameValidator : IValidate<IContent>, IValidate

Constructors

ContentNameValidator(LocalizationService)

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

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