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.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft