Base64Encoder(NewLineFormat, Int32) Constructor

Initialize a new instance of the Base64Encoder class.

Definition

Namespace: MimeKit.Encodings
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Base64Encoder(
	NewLineFormat newLineFormat,
	int maxLineLength = 76
)

Parameters

newLineFormat  NewLineFormat
The line ending format.
maxLineLength  Int32  (Optional)
The maximum line length, excluding line endings, between 60 and 998 (inclusive).

Remarks

Creates a new base64 encoder using the specified line endings. Line lengths over 76 are capped at 76.

Exceptions

ArgumentOutOfRangeException newLineFormat is not Dos or Unix, or maxLineLength is not between 60 and 998 (inclusive).

See Also