Class SeoUrlValidator
Represents the validator for Seo Url property of CatalogContentBase.
Inheritance
System.Object
SeoUrlValidator
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.Commerce.Validation
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public class SeoUrlValidator
Constructors
SeoUrlValidator(SimpleAddressOptions, SiteDefinition, IWebHostingEnvironment, IVirtualPathResolver, IAggregatedSimpleAddressResolver, LocalizationService, IContentRepository, IContentTypeRepository)
Initializes a new instance of the SeoUrlValidator class.
Declaration
public SeoUrlValidator(SimpleAddressOptions simpleAddressOptions, SiteDefinition siteDefinition, IWebHostingEnvironment webHostingEnvironment, IVirtualPathResolver virtualPathResolver, IAggregatedSimpleAddressResolver addressResolver, LocalizationService localizationService, IContentRepository contentRepository, IContentTypeRepository contentTypeRepository)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Web.Internal.SimpleAddressOptions | simpleAddressOptions | |
EPiServer.Web.SiteDefinition | siteDefinition | |
EPiServer.Web.IWebHostingEnvironment | webHostingEnvironment | |
EPiServer.Web.IVirtualPathResolver | virtualPathResolver | |
EPiServer.Web.IAggregatedSimpleAddressResolver | addressResolver | |
EPiServer.Framework.Localization.LocalizationService | localizationService | |
EPiServer.IContentRepository | contentRepository | |
EPiServer.DataAbstraction.IContentTypeRepository | contentTypeRepository |
Methods
Validate(CatalogContentBase)
Validates the specified CatalogContentBase instance.
Declaration
public IEnumerable<ValidationError> Validate(CatalogContentBase instance)
Parameters
Type | Name | Description |
---|---|---|
CatalogContentBase | instance | The CatalogContentBase instance. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EPiServer.Validation.ValidationError> | A list of EPiServer.Validation.ValidationError. |