MhtmlAttachments.GetAttachmentInfo

MhtmlAttachments.GetAttachmentInfo method

Gets information about all attachments in an MHT file.

public static List<MhtmlAttachmentInfo> GetAttachmentInfo(Stream sourceStream)
ParameterTypeDescription
sourceStreamStreamThe stream containing the MHT file.

Return Value

A list of MhtmlAttachmentInfo objects containing information about each attachment.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown when sourceStream is null.

See Also