DOMConfiguratorAttribute Class | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Assembly level attribute to configure the XmlConfigurator.
Inheritance Hierarchy

System
Object
System
Attribute
log4net.Config
ConfiguratorAttribute
log4net.Config
XmlConfiguratorAttribute
log4net.Config
DOMConfiguratorAttribute

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

C#
VB
C++
F#
Copy

    [SerializableAttribute]
    [ObsoleteAttribute("Use XmlConfiguratorAttribute instead of DOMConfiguratorAttribute")]
    public sealed class DOMConfiguratorAttribute : XmlConfiguratorAttribute

    <SerializableAttribute>
    <ObsoleteAttribute("Use XmlConfiguratorAttribute instead of DOMConfiguratorAttribute")>
    Public NotInheritable Class DOMConfiguratorAttribute
    	Inherits XmlConfiguratorAttribute

    [SerializableAttribute]
    [ObsoleteAttribute(L"Use XmlConfiguratorAttribute instead of DOMConfiguratorAttribute")]
    public ref class DOMConfiguratorAttribute sealed : public XmlConfiguratorAttribute

    [<SealedAttribute>]
    [<SerializableAttribute>]
    [<ObsoleteAttribute("Use XmlConfiguratorAttribute instead of DOMConfiguratorAttribute")>]
    type DOMConfiguratorAttribute =
        class
            inherit XmlConfiguratorAttribute
        end

The DOMConfiguratorAttribute type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| DOMConfiguratorAttribute | Initializes a new instance of the DOMConfiguratorAttribute class

Top
Properties

| Name | Description
--- | --- | ---
| ConfigFile | Gets or sets the filename of the configuration file. (Inherited from XmlConfiguratorAttribute.)
| ConfigFileExtension | Gets or sets the extension of the configuration file. (Inherited from XmlConfiguratorAttribute.)
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)
| Watch | Gets or sets a value indicating whether to watch the configuration file. (Inherited from XmlConfiguratorAttribute.)

Top
Methods

| Name | Description
--- | --- | ---
| CompareTo | Compare this instance to another ConfiguratorAttribute (Inherited from ConfiguratorAttribute.)
| Configure | Configures the ILoggerRepository for the specified assembly. (Inherited from XmlConfiguratorAttribute.)
| Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)
| GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.)
| Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute.

This attribute may only be used at the assembly scope and can only be used once per assembly.

Use this attribute to configure the XmlConfigurator without calling one of the [M:XmlConfigurator.Configure()] methods.

See Also

#### Reference

log4net.Config Namespace