## MhtmlAttachments.GetAttachmentInfo method

Gets information about all attachments in an MHT file.

```csharp
public static List<MhtmlAttachmentInfo> GetAttachmentInfo(Stream sourceStream)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sourceStream | Stream | The stream containing the MHT file. |

### Return Value

A list of [`MhtmlAttachmentInfo`](../../mhtmlattachmentinfo/) objects containing information about each attachment.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | Thrown when *sourceStream* is null. |

### See Also

* class [MhtmlAttachmentInfo](../../mhtmlattachmentinfo/)
* class [MhtmlAttachments](../)
* namespace [Aspose.Html.Rendering](../../../aspose.html.rendering/)
* assembly [Aspose.HTML](../../../)
