MboxStorageReader.CreateReaderAsync

CreateReaderAsync(string, MboxLoadOptions, CancellationToken)

Creates the instance of reader.

public static Task<MboxStorageReader> CreateReaderAsync(string fileName, MboxLoadOptions options, 
    CancellationToken token = default)
ParameterTypeDescription
fileNameStringThe full name of the file.
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

exceptioncondition
ArgumentNullException

See Also


CreateReaderAsync(Stream, MboxLoadOptions, CancellationToken)

Creates the instance of reader.

public static Task<MboxStorageReader> CreateReaderAsync(Stream stream, MboxLoadOptions options, 
    CancellationToken token = default)
ParameterTypeDescription
streamStreamThe stream.
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A read MboxStorageReader

Exceptions

exceptioncondition
ArgumentNullException

See Also