EventSchemaTraceListener.BufferSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the size of the output buffer.
public:
property int BufferSize { int get(); };
public int BufferSize { get; }
member this.BufferSize : int
Public ReadOnly Property BufferSize As Integer
Property Value
The size of the output buffer, in bytes.
Examples
The following code example demonstrates how to display the value of the BufferSize property. This code example is part of a larger example that is provided for the EventSchemaTraceListener class.
Console.WriteLine("BufferSize = " + ((EventSchemaTraceListener)ts.Listeners["eventListener"]).BufferSize);
Console.WriteLine("BufferSize = " + CType(ts.Listeners("eventListener"), EventSchemaTraceListener).BufferSize.ToString())
Remarks
The property value is set by the bufferSize
parameter in the constructor. For performance reasons, the buffer size should be set to a multiple of 1024 bytes. We recommend either the default size of 32*1024 bytes or 64*1024 bytes for best performance.