log4net SDK Reference |

# IRepositorySelector.ExistsRepository Method

Test if a named repository exists

[Visual Basic]
Function ExistsRepository( _
ByVal repositoryName As String _
) As Boolean
[C#]
bool ExistsRepository(
string repositoryName
);

#### Parameters

repositoryName
  the named repository to check

#### Return Value

`true` if the repository exists

#### Remarks

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

#### See Also

IRepositorySelector Interface | log4net.Core Namespace