log4net SDK Reference

UdpAppender.ActivateOptions Method 

Initialize the appender based on the options set.

[Visual Basic]
Overrides Public Sub ActivateOptions() _
    Implements IOptionHandler.ActivateOptions
[C#]
public override void ActivateOptions();

Implements

IOptionHandler.ActivateOptions

Remarks

This is part of the IOptionHandler delayed object activation scheme. The ActivateOptions method must be called on this object after the configuration properties have been set. Until ActivateOptions is called this object is in an undefined state and must not be used.

If any of the configuration properties are modified then ActivateOptions must be called again.

The appender will be ignored if no RemoteAddress was specified or an invalid remote or local TCP port number was specified.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThe required property RemoteAddress was not specified.
ArgumentOutOfRangeExceptionThe TCP port number assigned to LocalPort or RemotePort is less than MinPort or greater than MaxPort.

See Also

UdpAppender Class | log4net.Appender Namespace