MailKit Documentation
MailKit Documentation
API Reference
MailKit
HeaderSet Class
HeaderSet Methods
Contains Method
Contains(HeaderId) Method
Contains(String) Method
Header
Set
Contains(String) Method
Check if the set of headers contains the specified header.
Namespace:
MailKit
Assembly:
MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
Copy
public
bool
Contains
(
string
header
)
Parameters
header
String
The name of the header.
Return Value
Boolean
Field Value
Boolean
true if the specified header exists; otherwise
Field Value
Boolean
false.
Implements
ICollection
T
Contains(T)
Exceptions
Exception
Condition
ArgumentNullException
header
is
null
.
Remarks
Determines whether or not the set of headers contains the specified header.
See Also
Reference
HeaderSet Class
Contains Overload
MailKit Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast