System.Configuration.UrlPath.IsAbsoluteUNCPhysicalPath C# (CSharp) Метод

IsAbsoluteUNCPhysicalPath() приватный статический Метод

private static IsAbsoluteUNCPhysicalPath ( string path ) : bool
path string
Результат bool
        private static bool IsAbsoluteUNCPhysicalPath(string path) {
            if (path == null || path.Length < 3)
                return false;

            // e.g \\server\share\foo or //server/share/foo
            return (IsDirectorySeparatorChar(path[0]) && IsDirectorySeparatorChar(path[1]));
        }