ReusableStringWriter Reset Method | Apache log4net™ SDK Documentation

Reset this string writer so that it can be reused.

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

C#
VB
C++
F#
Copy

    public void Reset(
    	int maxCapacity,
    	int defaultSize
    )

    Public Sub Reset (
    	maxCapacity As Integer,
    	defaultSize As Integer
    )

    public:
    void Reset(
    	int maxCapacity,
    	int defaultSize
    )

    member Reset :
            maxCapacity : int *
            defaultSize : int -> unit

#### Parameters

maxCapacity
  Type: System
  Int32
  the maximum buffer capacity before it is trimmed
defaultSize
  Type: System
  Int32
  the default size to make the buffer

Remarks

Reset this string writer so that it can be reused. The internal buffers are cleared and reset.

See Also

#### Reference

ReusableStringWriter Class
log4net.Util Namespace