次の方法で共有


InternalBufferOverflowException コンストラクタ (String, Exception)

表示するメッセージと生成される内部例外を指定して、InternalBufferOverflowException クラスの新しいインスタンスを初期化します。

名前空間: System.IO
アセンブリ: System (system.dll 内)

構文

'宣言
Public Sub New ( _
    message As String, _
    inner As Exception _
)
'使用
Dim message As String
Dim inner As Exception

Dim instance As New InternalBufferOverflowException(message, inner)
public InternalBufferOverflowException (
    string message,
    Exception inner
)
public:
InternalBufferOverflowException (
    String^ message, 
    Exception^ inner
)
public InternalBufferOverflowException (
    String message, 
    Exception inner
)
public function InternalBufferOverflowException (
    message : String, 
    inner : Exception
)

パラメータ

  • message
    例外に表示されるメッセージ。
  • inner
    内部例外。

解説

これらのコンストラクタは、エラーを示すためにコンポーネントにより使用されます。クラスまたは .NET Framework を拡張する場合にだけ使用してください。この例外は、内部バッファがオーバーフローしていることを示します。正しく回復させるためには、コードで適切な処理を実行する必要があります。オーバーフローは多くの場合、短時間に多くの変更が加えられ、内部通知バッファがオーバーフローしたことによって発生します。これを解決するには、FileSystemWatcher.NotifyFilter プロパティと FileSystemWatcher.IncludeSubdirectories プロパティを使用して、不要な変更通知をフィルタによって排除します。FileSystemWatcher.InternalBufferSize プロパティを使用して、内部バッファのサイズを大きくすることもできます。ただし、バッファのサイズを大きくすると負荷が大きくなため、バッファはできるだけ小さくしてください。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

InternalBufferOverflowException クラス
InternalBufferOverflowException メンバ
System.IO 名前空間
FileSystemWatcher クラス
FileSystemWatcher.InternalBufferSize プロパティ