Click or drag to resize
MimeKit

SmtpClientSyncRoot Property

Gets an object that can be used to synchronize access to the SMTP server.

Namespace:  MailKit.Net.Smtp
Assembly:  MailKit (in MailKit.dll) Version: 2.3.0
Syntax
C#
public override Object SyncRoot { get; }

Property Value

Type: Object
The lock object.

Implements

IMailServiceSyncRoot
Remarks

Gets an object that can be used to synchronize access to the SMTP server between multiple threads.

When using SmtpClient methods from multiple threads, it is important to lock the SyncRoot object for thread safety.

See Also