---
title: "HeaderCollection.Set"
url: "https://reference.aspose.com/email/net/aspose.email.mime/headercollection/set/"
product: "Aspose.Email for .NET API Reference"
description: "HeaderCollection method. Sets the header"
---

## HeaderCollection.Set method

Sets the header.

```csharp
public void Set(string name, string value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The header name. |
| value | String | The header value. |

### See Also

* class [HeaderCollection](../)
* namespace [Aspose.Email.Mime](../../headercollection/)
* assembly [Aspose.Email](../../../)


