CommandExtensionsExecuteAllAsync(Command, TextReader, TextWriter, TextWriter) - метод
Continuously executes a command using specified IO streams until the input stream returns null
or a CommandCanceledException was thrown.
Пространство имён: Tessa.Platform.CommandLineСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public static Task ExecuteAllAsync(
this Command command,
TextReader input,
TextWriter output,
TextWriter error
)
<ExtensionAttribute>
Public Shared Function ExecuteAllAsync (
command As Command,
input As TextReader,
output As TextWriter,
error As TextWriter
) As Task
public:
[ExtensionAttribute]
static Task^ ExecuteAllAsync(
Command^ command,
TextReader^ input,
TextWriter^ output,
TextWriter^ error
)
[<ExtensionAttribute>]
static member ExecuteAllAsync :
command : Command *
input : TextReader *
output : TextWriter *
error : TextWriter -> Task
- command Command
- The Command to execute.
- input TextReader
- The TextReader that represents an input stream.
- output TextWriter
- The TextWriter that represents an output stream.
- error TextWriter
- The TextWriter that represents an error stream.
TaskВ Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
Command. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).
This method catches all exceptions of type CommandException and writes them
to the standard error stream.
ArgumentNullException | command, input,
output, or error is null. |