log4net SDK Reference |

# DefaultRepositorySelector.ExistsRepository Method

Test if a named repository exists

[Visual Basic]
NotOverridable Public Function ExistsRepository( _
ByVal repositoryName As String _
) As Boolean _
Implements IRepositorySelector.ExistsRepository
[C#]
public bool ExistsRepository(
string repositoryName
);

#### Parameters

repositoryName
  the named repository to check

#### Return Value

`true` if the repository exists

#### Implements

IRepositorySelector.ExistsRepository

#### Remarks

Test if a named repository exists. Use CreateRepository to create a new repository and GetRepository to retrieve a repository.

#### See Also

DefaultRepositorySelector Class | log4net.Core Namespace