Click or drag to resize
MimeKit

DefaultSecureMimeContextImport(Stream, Boolean, CancellationToken) Method

Import a DER-encoded certificate stream.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void Import(
	Stream stream,
	bool trusted,
	CancellationToken cancellationToken = default
)

Parameters

stream  Stream
The raw certificate(s).
trusted  Boolean
true if the certificates are trusted; othewrwise, false.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Imports the certificate(s).
See Also