Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

DefaultRepositorySelector�Constructor�

Creates a new repository selector.

[Visual�Basic]
Public�Sub�New( _
���ByVal defaultRepositoryType�As�Type�_
)
[C#]
public�DefaultRepositorySelector(
���TypedefaultRepositoryType
);

Parameters

defaultRepositoryType
The type of the repositories to create, must implement ILoggerRepository

Remarks

Create an new repository selector. The default type for repositories must be specified, an appropriate value would be Hierarchy.

Exceptions

Exception TypeCondition
ArgumentNullExceptiondefaultRepositoryType is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptiondefaultRepositoryType does not implement ILoggerRepository.

See Also

DefaultRepositorySelector Class | log4net.Core Namespace