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

WriteAsync() public méthode

public WriteAsync ( byte buffer, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
buffer byte
offset int
count int
cancellationToken System
Résultat System.Threading.Tasks.Task
        public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
    }

Same methods

PipeStream::WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Usage Example

    static void WriteBytesAsync(PipeStream pipeStream, byte[] buffer)
    {
        Assert.True(pipeStream.IsConnected);
        Assert.True(buffer.Length > 0);

        Task writeTask = pipeStream.WriteAsync(buffer, 0, buffer.Length);
        writeTask.Wait();
    }
All Usage Examples Of System.IO.Pipes.PipeStream::WriteAsync