log4net SDK Reference |

# CompactRepositorySelector Constructor

Create a new repository selector

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

#### 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 Type | Condition
--- | ---
ArgumentNullException | throw if defaultRepositoryType is null
ArgumentOutOfRangeException | throw if defaultRepositoryType does not implement ILoggerRepository

#### See Also

CompactRepositorySelector Class | log4net.Core Namespace