Headless.RegexLocationValidator.Matches C# (CSharp) Method

Matches() public method

The is null. /// The is a relative location where an absolute location is required. /// The is null.
public Matches ( Uri location, IEnumerable matchingExpressions ) : bool
location System.Uri
matchingExpressions IEnumerable
return bool
        public bool Matches(Uri location, IEnumerable<Regex> matchingExpressions)
        {
            if (location == null)
            {
                throw new ArgumentNullException("location");
            }

            if (location.IsAbsoluteUri == false)
            {
                throw new ArgumentException(Resources.Uri_LocationMustBeAbsolute, "location");
            }

            if (matchingExpressions == null)
            {
                throw new ArgumentNullException("matchingExpressions");
            }

            return matchingExpressions.Any(x => x.IsMatch(location.ToString()));
        }

Same methods

RegexLocationValidator::Matches ( Uri location, Uri expectedLocation ) : bool
RegexLocationValidator