Gets or sets the object to be used for synchronized access to the log file.
A reference to the object to be used for synchronized access to the log file.
The developer may need to set this value if the application is multi-threaded and there are multiple instances of MailBee components which attempt to write to the same log file. In this case, SyncRoot should be set to the same object reference for all such instances of MailBee components.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | value is a null reference (Nothing in Visual Basic). |
Logger Class | MailBee Namespace