InternalBufferOverflowException Constructor (String)


Initializes a new instance of the InternalBufferOverflowException class with the error message to be displayed specified.

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

public InternalBufferOverflowException(
	string message


Type: System.String

The message to be given for the 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
Available since 1.1
Return to top