Exemple #1
0
        public static string GetFullPath(string path)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }

            string fullPath = NormalizePath(path, fullCheck: true);

            // Emulate FileIOPermissions checks, retained for compatibility (normal invalid characters have already been checked)
            if (PathInternal.HasAdditionalIllegalCharacters(fullPath))
            {
                throw new ArgumentException(SR.Argument_InvalidPathChars, "path");
            }

            return(fullPath);
        }