PluginMap Add Method | Apache log4net™ SDK Documentation

Adds a IPlugin to the map.

Namespace: log4net.Plugin
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public void Add(
    	IPlugin plugin
    )

    Public Sub Add (
    	plugin As IPlugin
    )

    public:
    void Add(
    	IPlugin^ plugin
    )

    member Add :
            plugin : IPlugin -> unit

#### Parameters

plugin
  Type: log4net.Plugin
  IPlugin
  The IPlugin to add to the map.

Remarks

The IPlugin will be attached to the repository when added.

If there already exists a plugin with the same name attached to the repository then the old plugin will be Shutdown
and replaced with the new plugin.

See Also

#### Reference

PluginMap Class
log4net.Plugin Namespace