AliasDomainAttribute Class | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Assembly level attribute that specifies a domain to alias to this assembly's repository.
Inheritance Hierarchy

System
Object
System
Attribute
log4net.Config
AliasRepositoryAttribute
log4net.Config
AliasDomainAttribute

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 AliasRepositoryAttribute instead of AliasDomainAttribute")]
    public sealed class AliasDomainAttribute : AliasRepositoryAttribute

    <SerializableAttribute>
    <ObsoleteAttribute("Use AliasRepositoryAttribute instead of AliasDomainAttribute")>
    Public NotInheritable Class AliasDomainAttribute
    	Inherits AliasRepositoryAttribute

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

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

The AliasDomainAttribute type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| AliasDomainAttribute | Initializes a new instance of the AliasDomainAttribute class with the specified domain to alias to this assembly's repository.

Top
Properties

| Name | Description
--- | --- | ---
| Name | Gets or sets the repository to alias to this assemby's repository. (Inherited from AliasRepositoryAttribute.)
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)

Top
Methods

| Name | Description
--- | --- | ---
| 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.

An assembly's logger repository is defined by its DomainAttribute, however this can be overridden by an assembly loaded before the target assembly.

An assembly can alias another assembly's domain to its repository by specifying this attribute with the name of the target domain.

This attribute can only be specified on the assembly and may be used as many times as necessary to alias all the required domains.

See Also

#### Reference

log4net.Config Namespace