Headless.CompositeLocationValidator.Matches C# (CSharp) Метод

Matches() публичный Метод

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
Результат bool
        public override 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()));
        }
CompositeLocationValidator