ImapClient.CopyMessageAsync

CopyMessageAsync(IConnection, int, string)

Copies the message

public Task<string> CopyMessageAsync(IConnection connection, int sequenceNumber, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
folderNameStringFolder name where a message is to be copied

Return Value

Task object, with delegate for this operation

See Also


CopyMessageAsync(IConnection, string, string)

Copies the message

public Task<string> CopyMessageAsync(IConnection connection, string uniqueId, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
folderNameStringFolder name where a message is to be copied

Return Value

Task object, with delegate for this operation

See Also


CopyMessageAsync(int, string)

Copies the message

public Task<string> CopyMessageAsync(int sequenceNumber, string folderName)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
folderNameStringFolder name where a message is to be copied

Return Value

Task object, with delegate for this operation

See Also


CopyMessageAsync(string, string)

Copies the message

public Task<string> CopyMessageAsync(string uniqueId, string folderName)
ParameterTypeDescription
uniqueIdStringThe uid of the message
folderNameStringFolder name where a message is to be copied

Return Value

Task object, with delegate for this operation

See Also


CopyMessageAsync(IConnection, int, string, CancellationToken)

Copies the message

public Task<string> CopyMessageAsync(IConnection connection, int sequenceNumber, string folderName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
folderNameStringFolder name where a message is to be copied
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


CopyMessageAsync(IConnection, string, string, CancellationToken)

Copies the message

public Task<string> CopyMessageAsync(IConnection connection, string uniqueId, string folderName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe uid of the message
folderNameStringFolder name where a message is to be copied
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


CopyMessageAsync(int, string, CancellationToken)

Copies the message

public Task<string> CopyMessageAsync(int sequenceNumber, string folderName, CancellationToken token)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
folderNameStringFolder name where a message is to be copied
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


CopyMessageAsync(string, string, CancellationToken)

Copies the message

public Task<string> CopyMessageAsync(string uniqueId, string folderName, CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe uid of the message
folderNameStringFolder name where a message is to be copied
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also