ImapClient.SaveMessageAsync

SaveMessageAsync(IConnection, int, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(IConnection connection, int sequenceNumber, Stream resultStream)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
resultStreamStreamStream that will receive the message

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(IConnection, string, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(IConnection connection, string uniqueId, Stream resultStream)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique Id of the message
resultStreamStreamStream that will receive the message

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(IConnection, string, string)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(IConnection connection, string uniqueId, string fileName)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique Id of the message
fileNameStringThe path of the local file. This cannot be a directory

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(IConnection, int, string)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(IConnection connection, int sequenceNumber, string fileName)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
fileNameStringThe path of the local file. This cannot be a directory

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(int, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(int sequenceNumber, Stream resultStream)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
resultStreamStreamStream that will receive the message

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(string, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(string uniqueId, Stream resultStream)
ParameterTypeDescription
uniqueIdStringThe unique Id of the message
resultStreamStreamStream that will receive the message

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(string, string)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(string uniqueId, string fileName)
ParameterTypeDescription
uniqueIdStringThe unique Id of the message
fileNameStringThe path of the local file. This cannot be a directory

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(int, string)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(int sequenceNumber, string fileName)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
fileNameStringThe path of the local file. This cannot be a directory

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(IConnection, int, Stream, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(IConnection connection, int sequenceNumber, Stream resultStream, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
resultStreamStreamStream that will receive the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(IConnection, string, Stream, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(IConnection connection, string uniqueId, Stream resultStream, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique Id of the message
resultStreamStreamStream that will receive the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(IConnection, string, string, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(IConnection connection, string uniqueId, string fileName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique Id of the message
fileNameStringThe path of the local file. This cannot be a directory
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(IConnection, int, string, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(IConnection connection, int sequenceNumber, string fileName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
fileNameStringThe path of the local file. This cannot be a directory
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(int, Stream, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(int sequenceNumber, Stream resultStream, CancellationToken token)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
resultStreamStreamStream that will receive the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(string, Stream, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public Task SaveMessageAsync(string uniqueId, Stream resultStream, CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe unique Id of the message
resultStreamStreamStream that will receive the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(string, string, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(string uniqueId, string fileName, CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe unique Id of the message
fileNameStringThe path of the local file. This cannot be a directory
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


SaveMessageAsync(int, string, CancellationToken)

Downloads the message with the specified sequence number and writes its data into a local file

public Task SaveMessageAsync(int sequenceNumber, string fileName, CancellationToken token)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
fileNameStringThe path of the local file. This cannot be a directory
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also