log4net SDK Reference |

# ForwardingAppender.OnClose Method

Closes the appender and releases resources.

[Visual Basic]
Overrides Protected Sub OnClose()
[C#]
protected override void OnClose();

#### Remarks

Releases any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

#### See Also

ForwardingAppender Class | log4net.Appender Namespace