Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

DefaultRepositorySelector.AliasRepository�Method�

Aliases a repository to an existing repository.

[Visual�Basic]
Public�Sub�AliasRepository( _
���ByVal repositoryAlias�As�String,�_
���ByVal repositoryTarget�As�ILoggerRepository�_
)
[C#]
public�void�AliasRepository(
���stringrepositoryAlias,
���ILoggerRepositoryrepositoryTarget
);

Parameters

repositoryAlias
The repository to alias.
repositoryTarget
The repository that the repository is aliased to.

Remarks

The repository specified will be aliased to the repository when created. The repository must not already exist.

When the repository is created it must utilize the same repository type as the repository it is aliased to, otherwise the aliasing will fail.

Exceptions

Exception TypeCondition
ArgumentNullException

repositoryAlias is a null reference (Nothing in Visual Basic).

-or-

repositoryTarget is a null reference (Nothing in Visual Basic).

See Also

DefaultRepositorySelector Class | log4net.Core Namespace