Base64Encoder(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(
	int maxLineLength = 76
)

Parameters

maxLineLength  Int32  (Optional)
The maximum number of octets allowed per line (not counting the CRLF). Must be between 60 and 998 (inclusive).

Remarks

Creates a new base64 encoder using CRLF line endings.

  Note

Specifying a maxLineLength value over 76 octets will be ignored and capped at 76.

Exceptions

ArgumentOutOfRangeException maxLineLength is not between 60 and 998 (inclusive).

See Also