Headless.ComponentsLocationValidator.ValidateParameters C# (CSharp) 메소드

ValidateParameters() 보호된 정적인 메소드

Validates that appropriate parameters are supplied.
/// The parameter is null. /// /// The is a relative location where an absolute location is required. /// /// The parameter is null. /// /// The is a relative location where an absolute location is required. ///
protected static ValidateParameters ( Uri expectedLocation, Uri actualLocation ) : void
expectedLocation System.Uri /// The expected location. ///
actualLocation System.Uri /// The actual location. ///
리턴 void
        protected static void ValidateParameters(Uri expectedLocation, Uri actualLocation)
        {
            if (actualLocation == null)
            {
                throw new ArgumentNullException("actualLocation");
            }

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

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

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