DefaultRepositorySelector ExistsRepository Method | Apache log4net™ SDK Documentation

Test if a named repository exists

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

C#
VB
C++
F#
Copy

    public bool ExistsRepository(
    	string repositoryName
    )

    Public Function ExistsRepository (
    	repositoryName As String
    ) As Boolean

    public:
    virtual bool ExistsRepository(
    	String^ repositoryName
    ) sealed

    abstract ExistsRepository :
            repositoryName : string -> bool
    override ExistsRepository :
            repositoryName : string -> bool

#### Parameters

repositoryName
  Type: System
  String
  the named repository to check

#### Return Value

Type: Boolean
true if the repository exists

#### Implements

IRepositorySelector
ExistsRepository(String)
Remarks

Test if a named repository exists. Use [M:CreateRepository(string, Type)] to create a new repository and [M:GetRepository(string)] to retrieve a repository.

See Also

#### Reference

DefaultRepositorySelector Class
log4net.Core Namespace