System.IO.Pipes.PipeStream.GetPipePath C# (CSharp) Méthode

GetPipePath() static private méthode

static private GetPipePath ( string serverName, string pipeName ) : string
serverName string
pipeName string
Résultat string
        internal static string GetPipePath(string serverName, string pipeName)
        {
            string normalizedPipePath = Path.GetFullPath(@"\\" + serverName + @"\pipe\" + pipeName);
            if (String.Equals(normalizedPipePath, @"\\.\pipe\" + AnonymousPipeName, StringComparison.OrdinalIgnoreCase))
            {
                throw new ArgumentOutOfRangeException(nameof(pipeName), SR.ArgumentOutOfRange_AnonymousReserved);
            }
            return normalizedPipePath;
        }