Gets the MimeHeader of the specified name.

Namespace:  Rebex.Mime
Assembly:  Rebex.Mail (in Rebex.Mail.dll)

Syntax

Visual Basic
Public Default Property Item ( _
	headerName As String _
) As MimeHeader
	Get
	Set
C#
public MimeHeader this[
	string headerName
] { get; set; }

Parameters

headerName
Type: System..::..String
The name of the header to get.

Field Value

MimeHeader of the specified name.

Remarks

If no header of the specified name is found, the return value is null.

If more than one headers are found, only the first is returned.

When assinging value, the first header of specified name is changed and remaining headers of the same name are removed.

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also