Table of Contents

Class UrlValidationRuleAttribute

Namespace
Kentico.Xperience.Admin.Base.FormAnnotations
Assembly
Kentico.Xperience.Admin.Base.Shared.dll

Validation rule attribute to indicate that property value is a valid absolute URL or a relative URL.

public class UrlValidationRuleAttribute : ValidationRuleAttribute
Inheritance
object
Attribute
UrlValidationRuleAttribute
Inherited Members
Extension Methods

Constructors

UrlValidationRuleAttribute()

Creates new instance of UrlValidationRuleAttribute.

public UrlValidationRuleAttribute()

Properties

AllowFragmentUrl

Indicates whether URL fragments starting with '#' are allowed.

public bool AllowFragmentUrl { get; set; }

Property Value

bool

AllowOnlyQueryString

Indicates whether query string values starting with '?' are allowed.

public bool AllowOnlyQueryString { get; set; }

Property Value

bool

AllowRelativeUrl

Indicates whether relative URLs starting with '~/' are allowed.

public bool AllowRelativeUrl { get; set; }

Property Value

bool