 | ImapPeekHeadersByNumberAsync(MimeStructure, CancellationToken) Method |
Peeks MIME headers for specified MIME entity using
MessageNumber.
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<byte[]> PeekHeadersByNumberAsync(
MimeStructure structure,
CancellationToken cancel = default
)
Public Function PeekHeadersByNumberAsync (
structure As MimeStructure,
Optional cancel As CancellationToken = Nothing
) As Task(Of Byte())
public:
Task<array<unsigned char>^>^ PeekHeadersByNumberAsync(
MimeStructure^ structure,
CancellationToken cancel = CancellationToken()
)
member PeekHeadersByNumberAsync :
structure : MimeStructure *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<byte[]> Parameters
- structure MimeStructure
- MIME entity to get headers for.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskByteHeaders of the requested MIME entity. You can use
CreateFromEml(Byte) to parse them.
See Also