public static void ValidateSupportedSchemeInArgument(Uri uri, string argumentName) { if (!UriHelper.IsSupportedScheme(uri)) { throw new ArgumentException(Resources.GetString("Ex_NotSupportedUriScheme"), argumentName); } }
public static void ValidateSupportedScheme(Uri uri) { if (!UriHelper.IsSupportedScheme(uri)) { throw new InvalidDeploymentException(ExceptionTypes.UriSchemeNotSupported, Resources.GetString("Ex_NotSupportedUriScheme")); } }