LogManager CreateDomain Method (Type) | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Creates a repository with the specified repository type.

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

C#
VB
C++
F#
Copy

    [ObsoleteAttribute("Use CreateRepository instead of CreateDomain")]
    public static ILoggerRepository CreateDomain(
    	Type repositoryType
    )

    <ObsoleteAttribute("Use CreateRepository instead of CreateDomain")>
    Public Shared Function CreateDomain (
    	repositoryType As Type
    ) As ILoggerRepository

    public:
    [ObsoleteAttribute(L"Use CreateRepository instead of CreateDomain")]
    static ILoggerRepository^ CreateDomain(
    	Type^ repositoryType
    )

    [<ObsoleteAttribute("Use CreateRepository instead of CreateDomain")>]
    static member CreateDomain :
            repositoryType : Type -> ILoggerRepository

#### Parameters

repositoryType
  Type: System
  Type
  A Type that implements ILoggerRepository and has a no arg constructor. An instance of this type will be created to act as the ILoggerRepository for the repository specified.

#### Return Value

Type: ILoggerRepository
The ILoggerRepository created for the repository.
Remarks

CreateDomain is obsolete. Use CreateRepository instead of CreateDomain.

The ILoggerRepository created will be associated with the repository specified such that a call to [M:GetRepository()] will return the same repository instance.

See Also

#### Reference

LogManager Class
CreateDomain Overload
log4net Namespace