MailBee.NET Objects 4.0

Logger.SyncRoot Property

Gets or sets the object to be used for synchronized access to the log file.

public object SyncRoot {get; set;}

Property Value

A reference to the object to be used for synchronized access to the log file.

Remarks

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.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException value is a null reference (Nothing in Visual Basic).

See Also

Logger Class | MailBee Namespace