Imap ClientSync Root Property
Gets an object that can be used to synchronize access to the IMAP server.
Definition
Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The lock object.
IMailServiceSyncRoot
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public override Object SyncRoot { get; }Property Value
ObjectThe lock object.
Implements
IMailServiceSyncRootIMailServiceSyncRoot
Remarks
Gets an object that can be used to synchronize access to the IMAP server.
When using the non-Async methods from multiple threads, it is important to lock the SyncRoot object for thread safety when using the synchronous methods.