Class MhtmlAttachments

Class MhtmlAttachments

Namespace: Aspose.Html.Rendering
Assembly: Aspose.HTML.dll (26.3.0)

Provides methods for working with MHT attachments.

[ComVisible(true)]
public static class MhtmlAttachments

Inheritance

object MhtmlAttachments

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Methods

GetAttachmentInfo(Stream)

Gets information about all attachments in an MHT file.

public static List<MhtmlAttachmentInfo> GetAttachmentInfo(Stream sourceStream)

Parameters

sourceStream Stream

The stream containing the MHT file.

Returns

List < MhtmlAttachmentInfo >

A list of Aspose.Html.Rendering.MhtmlAttachmentInfo objects containing information about each attachment.

Exceptions

ArgumentNullException

Thrown when sourceStream is null.

GetAttachmentUrls(Stream)

Gets all attachment URLs from an MHT file.

public static List<string> GetAttachmentUrls(Stream sourceStream)

Parameters

sourceStream Stream

The stream containing the MHT file.

Returns

List < string >

A list of attachment URLs found in the MHT file.

Exceptions

ArgumentNullException

Thrown when sourceStream is null.