DenyAllFilter Class | Apache log4net™ SDK Documentation

This filter drops all LoggingEvent.
Inheritance Hierarchy

System
Object
log4net.Filter
FilterSkeleton
log4net.Filter
DenyAllFilter

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

C#
VB
C++
F#
Copy

    public sealed class DenyAllFilter : FilterSkeleton

    Public NotInheritable Class DenyAllFilter
    	Inherits FilterSkeleton

    public ref class DenyAllFilter sealed : public FilterSkeleton

    [<SealedAttribute>]
    type DenyAllFilter =
        class
            inherit FilterSkeleton
        end

The DenyAllFilter type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| DenyAllFilter | Default constructor

Top
Properties

| Name | Description
--- | --- | ---
| Next | Property to get and set the next filter (Inherited from FilterSkeleton.)

Top
Methods

| Name | Description
--- | --- | ---
| ActivateOptions | Initialize the filter with the options set (Inherited from FilterSkeleton.)
| Decide | Always returns the integer constant Deny (Overrides FilterSkeleton Decide(LoggingEvent).)
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

You can add this filter to the end of a filter chain to switch from the default "accept all unless instructed otherwise" filtering behavior to a "deny all unless instructed otherwise" behavior.

See Also

#### Reference

log4net.Filter Namespace