IOutputHandler.AddOutputStream
Contents
[
Hide
]AddOutputStream(string, Func<Stream, Task>)
Adds a named output stream using an asynchronous write action.
public Task AddOutputStream(string name, Func<Stream, Task> writeAction)
Parameter | Type | Description |
---|---|---|
name | String | The name of the output stream (e.g. file name). |
writeAction | Func`2 | An asynchronous function that writes to the provided stream. |
Return Value
A task representing the asynchronous operation.
See Also
- interface IOutputHandler
- namespace Aspose.Email.LowCode
- assembly Aspose.Email
AddOutputStream(string, Action<Stream>)
Adds a named output stream using a synchronous write action.
public void AddOutputStream(string name, Action<Stream> writeAction)
Parameter | Type | Description |
---|---|---|
name | String | The name of the output stream (e.g. file name). |
writeAction | Action`1 | A synchronous action that writes to the provided stream. |
See Also
- interface IOutputHandler
- namespace Aspose.Email.LowCode
- assembly Aspose.Email