Export (0) Print
Expand All

InternalBufferOverflowException Constructor (String, Exception)

Initializes a new instance of the InternalBufferOverflowException class with the message to be displayed and the generated inner exception specified.

Namespace:  System.IO
Assembly:  System (in System.dll)

public InternalBufferOverflowException(
	string message,
	Exception inner
)

Parameters

message
Type: System.String

The message to be given for the exception.

inner
Type: System.Exception

The inner exception.

These constructors are used by the component to signify an error. Only use them if extending the class or the .NET Framework. This exception indicates an internal buffer has overflowed and users should take appropriate steps in their code to ensure it recovers properly. The cause of the overflow is often too many changes in a short period of time, causing the internal notification buffer to overflow. To resolve this, use the FileSystemWatcher.NotifyFilter and FileSystemWatcher.IncludeSubdirectories properties to filter out unwanted change notifications. You can also increase the size of the internal buffer through the FileSystemWatcher.InternalBufferSize property. However, increasing the size of the buffer is expensive, so keep the buffer as small as possible.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft