MailBee.NET Objects 4.0

Global.DefaultTimeout Property

Gets or sets the default timeout value (in milliseconds) of all MailBee classes which allow the developer to set timeout value.

public static int DefaultTimeout {get; set;}

Property Value

An integer value which will be used as an initial value of Timeout property during creating instances of any MailBee class which implements Timeout property. The default value is 20000 (20 seconds).

Remarks

If set to zero, the default timeout setting will be "wait indefinitely".

Note   DefaultTimeout field has no effect on UDP timeout default value (UdpTimeout property).

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException value is negative.

See Also

Global Class | MailBee Namespace