Pop3Client.FetchMessageAsync

FetchMessageAsync(IConnection, string)

Fetches the message

public Task<MailMessage> FetchMessageAsync(IConnection connection, string uniqueId)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique id of the message

Return Value

Task object, with delegate for this operation

See Also


FetchMessageAsync(IConnection, int)

Fetches the message

public Task<MailMessage> FetchMessageAsync(IConnection connection, int sequenceNumber)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message

Return Value

Task object, with delegate for this operation

See Also


FetchMessageAsync(string)

Fetches the message

public Task<MailMessage> FetchMessageAsync(string uniqueId)
ParameterTypeDescription
uniqueIdStringThe unique id of the message

Return Value

Task object, with delegate for this operation

See Also


FetchMessageAsync(int)

Fetches the message

public Task<MailMessage> FetchMessageAsync(int sequenceNumber)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message

Return Value

Task object, with delegate for this operation

See Also


FetchMessageAsync(IConnection, string, CancellationToken)

Fetches the message

public Task<MailMessage> FetchMessageAsync(IConnection connection, string uniqueId, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique id of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


FetchMessageAsync(IConnection, int, CancellationToken)

Fetches the message

public Task<MailMessage> FetchMessageAsync(IConnection connection, int sequenceNumber, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


FetchMessageAsync(string, CancellationToken)

Fetches the message

public Task<MailMessage> FetchMessageAsync(string uniqueId, CancellationToken token)
ParameterTypeDescription
uniqueIdStringThe unique id of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


FetchMessageAsync(int, CancellationToken)

Fetches the message

public Task<MailMessage> FetchMessageAsync(int sequenceNumber, CancellationToken token)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also