log4net SDK Reference |

# DefaultRepositorySelector Constructor

Creates a new repository selector.

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

#### 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 Type | Condition
--- | ---
ArgumentNullException | defaultRepositoryType is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException | defaultRepositoryType does not implement ILoggerRepository.

#### See Also

DefaultRepositorySelector Class | log4net.Core Namespace