## MapiAttachmentCollection.Remove method

Removes the first occurrence of the attachment from the collection.

```csharp
public bool Remove(MapiAttachment item)
```

| Parameter | Type | Description |
| --- | --- | --- |
| item | MapiAttachment | The attachment to remove. |

### Return Value

`true` if the attachment was removed; `false` if it was not in the collection.

### See Also

* class [MapiAttachment](../../mapiattachment/)
* class [MapiAttachmentCollection](../)
* namespace [Aspose.Email.Mapi](../../mapiattachmentcollection/)
* assembly [Aspose.Email](../../../)


