Click or drag to resize
MimeKit

ImapFolderSyncRoot Property

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

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

Property Value

Object
The lock object.

Implements

IMailFolderSyncRoot
IMailFolderSyncRoot
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.

See Also