CompactRepositorySelector Constructor | Apache log4net™ SDK Documentation

Create a new repository selector

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

C#
VB
C++
F#
Copy

    public CompactRepositorySelector(
    	Type defaultRepositoryType
    )

    Public Sub New (
    	defaultRepositoryType As Type
    )

    public:
    CompactRepositorySelector(
    	Type^ defaultRepositoryType
    )

    new :
            defaultRepositoryType : Type -> CompactRepositorySelector

#### Parameters

defaultRepositoryType
  Type: System
  Type
  the type of the repositories to create, must implement ILoggerRepository

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | throw if defaultRepositoryType is null
ArgumentOutOfRangeException | throw if defaultRepositoryType does not implement ILoggerRepository

Remarks

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

See Also

#### Reference

CompactRepositorySelector Class
log4net.Core Namespace