MailKit Documentation
MailKit Documentation
API Reference
MailKit.Search
SearchQuery Class
SearchQuery Methods
And Method
AnnotationsContain Method
BccContains Method
BodyContains Method
CcContains Method
ChangedSince Method
DeliveredAfter Method
DeliveredBefore Method
DeliveredOn Method
Filter Method
FromContains Method
Fuzzy Method
GMailMessageId Method
GMailRawSearch Method
GMailThreadId Method
HasFlags Method
HasGMailLabel Method
HasKeyword Method
HasKeywords Method
HeaderContains Method
LargerThan Method
MessageContains Method
Not Method
NotFlags Method
NotKeyword Method
NotKeywords Method
OlderThan Method
Or Method
SavedBefore Method
SavedOn Method
SavedSince Method
SentBefore Method
SentOn Method
SentSince Method
SmallerThan Method
SubjectContains Method
ToContains Method
Uids Method
YoungerThan Method
Search
Query
To
Contains Method
Match messages where the To header contains the specified text.
Namespace:
MailKit.Search
Assembly:
MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Copy
public
static
TextSearchQuery
ToContains
(
string
text
)
Parameters
text
String
The text to match against.
Return Value
TextSearchQuery
A
TextSearchQuery
.
Exceptions
Exception
Condition
ArgumentNullException
text
is
null
.
ArgumentException
text
is empty.
Remarks
Matches messages where the To header contains the specified text.
See Also
Reference
SearchQuery Class
MailKit.Search Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast