Table of Contents

Method FromRequested

Namespace
MailFathom.Application.Emails.Search
Assembly
MailFathom.Application.dll

FromRequested(int?)

Creates a limit from a request that may not have named one.

public static EmailSearchResultLimit FromRequested(int? value)

Parameters

value int?

The requested number of results, or null when the request named none.

Returns

EmailSearchResultLimit

The validated limit, or Default when the request named none.

Exceptions

EmailSearchResultLimitOutOfRangeException

Thrown when value is named and outside the accepted range.