PluginAttribute ClassApache log4net™ SDK Documentation
Assembly level attribute that specifies a plugin to attach to the repository.
Inheritance Hierarchy

SystemObject
  SystemAttribute
    log4net.ConfigPluginAttribute

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

[SerializableAttribute]
public sealed class PluginAttribute : Attribute, 
	IPluginFactory

The PluginAttribute type exposes the following members.

Constructors

  NameDescription
Public methodPluginAttribute(String)
Initializes a new instance of the PluginAttribute class with the specified type.
Public methodPluginAttribute(Type)
Initializes a new instance of the PluginAttribute class with the specified type.
Top
Properties

  NameDescription
Public propertyType
Gets or sets the type for the plugin.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Public propertyTypeName
Gets or sets the type name for the plugin.
Top
Methods

  NameDescription
Public methodCreatePlugin
Creates the plugin object defined by this attribute.
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
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.)
Public methodToString
Returns a representation of the properties of this object.
(Overrides ObjectToString.)
Top
Remarks

Specifies the type of a plugin to create and attach to the assembly's repository. The plugin type must implement the IPlugin interface.

See Also

Reference