MhtmlAttachments.GetAttachmentUrls

MhtmlAttachments.GetAttachmentUrls method

Gets all attachment URLs from an MHT file.

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

Return Value

A list of attachment URLs found in the MHT file.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown when sourceStream is null.

See Also