CyclicBuffer Constructor | Apache log4net™ SDK Documentation

Constructor

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

C#
VB
C++
F#
Copy

    public CyclicBuffer(
    	int maxSize
    )

    Public Sub New (
    	maxSize As Integer
    )

    public:
    CyclicBuffer(
    	int maxSize
    )

    new :
            maxSize : int -> CyclicBuffer

#### Parameters

maxSize
  Type: System
  Int32
  The maximum number of logging events in the buffer.

Exceptions

Exception | Condition
--- | ---
ArgumentOutOfRangeException | The maxSize argument is not a positive integer.

Remarks

Initializes a new instance of the CyclicBuffer class with the specified maximum number of buffered logging events.

See Also

#### Reference

CyclicBuffer Class
log4net.Util Namespace