log4net SDK Reference |

# PluginSkeleton.Attach Method

Attaches this plugin to a ILoggerRepository.

[Visual Basic]
Overridable Public Sub Attach( _
ByVal repository As ILoggerRepository _
) _
Implements IPlugin.Attach
[C#]
public virtual void Attach(
ILoggerRepository repository
);

#### Parameters

repository
  The ILoggerRepository that this plugin should be attached to.

#### Implements

IPlugin.Attach

#### Remarks

A plugin may only be attached to a single repository.

This method is called when the plugin is attached to the repository.

#### See Also

PluginSkeleton Class | log4net.Plugin Namespace