InternalBufferOverflowException クラス

内部バッファがオーバーフローした場合にスローされる例外。

この型のすべてのメンバの一覧については、InternalBufferOverflowException メンバ を参照してください。

System.Object
   System.Exception
      System.SystemException
         System.IO.InternalBufferOverflowException

<Serializable>
Public Class InternalBufferOverflowException   Inherits SystemException
[C#]
[Serializable]
public class InternalBufferOverflowException : SystemException
[C++]
[Serializable]
public __gc class InternalBufferOverflowException : public   SystemException
[JScript]
public
   Serializable
class InternalBufferOverflowException extends   SystemException

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

FileSystemWatcher では、ファイルの変更通知を受けた場合に、システムはコンポーネントが作成するバッファにその変更を格納し、アプリケーション プログラミング インターフェイス (API: Application Programming Interface) に渡します。短時間に多くの変更が加えられた場合、バッファはオーバーフローしやすく、例外がスローされ、実質的にすべての変更が失われることがあります。バッファのオーバーフローを防ぐには、 FileSystemWatcher.NotifyFilter プロパティと FileSystemWatcher.IncludeSubdirectories プロパティを使用して、不必要な変更通知をフィルタで排除します。 FileSystemWatcher.InternalBufferSize プロパティを使用して、内部バッファのサイズを大きくすることもできます。ただし、バッファのサイズを大きくすると負荷が大きくなため、バッファはできるだけ小さくしてください。

必要条件

名前空間: System.IO

プラットフォーム: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

アセンブリ: System (System.dll 内)

参照

InternalBufferOverflowException メンバ | System.IO 名前空間 | FileSystemEventArgs | FileSystemEventHandler | FileSystemWatcher | IncludeSubdirectories | InternalBufferSize | NotifyFilter | NotifyFilters | RenamedEventArgs | RenamedEventHandler | WaitForChangedResult | WatcherChangeTypes