## IGraphClient.CreateAttachment method

Creates new attachment for specified item

```csharp
public MapiAttachment CreateAttachment(string parentId, MapiAttachment attachment)
```

| Parameter | Type | Description |
| --- | --- | --- |
| parentId | String | Item id |
| attachment | MapiAttachment | Attachment to create |

### Return Value

Returns created attachment

### See Also

* class [MapiAttachment](../../../aspose.email.mapi/mapiattachment/)
* interface [IGraphClient](../)
* namespace [Aspose.Email.Clients.Graph](../../igraphclient/)
* assembly [Aspose.Email](../../../)


