Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

CompactRepositorySelector�Constructor�

Create a new repository selector

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

Parameters

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

Remarks

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

Exceptions

Exception TypeCondition
ArgumentNullExceptionthrow if defaultRepositoryType is null
ArgumentOutOfRangeExceptionthrow if defaultRepositoryType does not implement ILoggerRepository

See Also

CompactRepositorySelector Class | log4net.Core Namespace