RepositoryAttribute Class
RepositoryAttribute ClassApache log4net™ SDK Documentation
Assembly level attribute that specifies the logging repository for the assembly.
Inheritance Hierarchy

SystemObject
  SystemAttribute
    log4net.ConfigRepositoryAttribute
      log4net.ConfigDomainAttribute

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

[SerializableAttribute]
public class RepositoryAttribute : Attribute

The RepositoryAttribute type exposes the following members.

Constructors

  NameDescription
Public methodRepositoryAttribute
Initializes a new instance of the RepositoryAttribute class.
Public methodRepositoryAttribute(String)
Initialize a new instance of the RepositoryAttribute class with the name of the repository.
Top
Properties

  NameDescription
Public propertyName
Gets or sets the name of the logging repository.
Public propertyRepositoryType
Gets or sets the type of repository to create for this assembly.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Top
Methods

  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

Assemblies are mapped to logging repository. This attribute specified on the assembly controls the configuration of the repository. The Name property specifies the name of the repository that this assembly is a part of. The RepositoryType specifies the type of the ILoggerRepository object to create for the assembly. If this attribute is not specified or a Name is not specified then the assembly will be part of the default shared logging repository.

This attribute can only be specified on the assembly and may only be used once per assembly.

See Also

Reference