InternalBufferOverflowException 建構函式

定義

初始化 InternalBufferOverflowException 類別的新執行個體。

多載

InternalBufferOverflowException()

初始化 InternalBufferOverflowException 類別預設的新執行個體。

InternalBufferOverflowException(String)

使用指定要顯示的錯誤訊息來初始化 InternalBufferOverflowException 類別的新執行個體。

InternalBufferOverflowException(SerializationInfo, StreamingContext)
已淘汰.

初始化 InternalBufferOverflowException 類別的空白新執行個體,這個執行個體可序列化,並使用指定的 SerializationInfoStreamingContext 物件。

InternalBufferOverflowException(String, Exception)

使用指定要顯示的訊息和指定產生的內部例外狀況,初始化 InternalBufferOverflowException 類別的新執行個體。

InternalBufferOverflowException()

來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs

初始化 InternalBufferOverflowException 類別預設的新執行個體。

public:
 InternalBufferOverflowException();
public InternalBufferOverflowException ();
Public Sub New ()

備註

元件會使用這些建構函式來表示錯誤。 只有在擴充 類別或 .NET Framework 時,才使用它們。 此例外狀況表示內部緩衝區已溢位,而且用戶應該在其程式代碼中採取適當的步驟,以確保其能正確復原。 溢位的原因通常是短時間內太多變更,導致內部通知緩衝區溢位。 若要解決此問題,請使用 FileSystemWatcher.NotifyFilterFileSystemWatcher.IncludeSubdirectories 屬性來篩選掉不必要的變更通知。 您也可以透過 FileSystemWatcher.InternalBufferSize 屬性增加內部緩衝區的大小。 不過,增加緩衝區的大小很昂貴,因此請盡可能讓緩衝區保持小。

另請參閱

適用於

InternalBufferOverflowException(String)

來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs

使用指定要顯示的錯誤訊息來初始化 InternalBufferOverflowException 類別的新執行個體。

public:
 InternalBufferOverflowException(System::String ^ message);
public InternalBufferOverflowException (string? message);
public InternalBufferOverflowException (string message);
new System.IO.InternalBufferOverflowException : string -> System.IO.InternalBufferOverflowException
Public Sub New (message As String)

參數

message
String

要指定給例外狀況的訊息。

備註

元件會使用這些建構函式來表示錯誤。 只有在擴充 類別或 .NET Framework 時,才使用它們。 此例外狀況表示內部緩衝區已溢位,而且用戶應該在其程式代碼中採取適當的步驟,以確保其能正確復原。 溢位的原因通常是短時間內太多變更,導致內部通知緩衝區溢位。 若要解決此問題,請使用 FileSystemWatcher.NotifyFilterFileSystemWatcher.IncludeSubdirectories 屬性來篩選掉不必要的變更通知。 您也可以透過 FileSystemWatcher.InternalBufferSize 屬性增加內部緩衝區的大小。 不過,增加緩衝區的大小很昂貴,因此請盡可能讓緩衝區保持小。

另請參閱

適用於

InternalBufferOverflowException(SerializationInfo, StreamingContext)

來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs

警告

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

初始化 InternalBufferOverflowException 類別的空白新執行個體,這個執行個體可序列化,並使用指定的 SerializationInfoStreamingContext 物件。

protected:
 InternalBufferOverflowException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InternalBufferOverflowException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected InternalBufferOverflowException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IO.InternalBufferOverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.InternalBufferOverflowException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.IO.InternalBufferOverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.InternalBufferOverflowException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

串行化 InternalBufferOverflowException 物件所需的資訊。

context
StreamingContext

與對象相關聯 InternalBufferOverflowException 之串行化數據流的來源和目的地。

屬性

適用於

InternalBufferOverflowException(String, Exception)

來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs

使用指定要顯示的訊息和指定產生的內部例外狀況,初始化 InternalBufferOverflowException 類別的新執行個體。

public:
 InternalBufferOverflowException(System::String ^ message, Exception ^ inner);
public InternalBufferOverflowException (string? message, Exception? inner);
public InternalBufferOverflowException (string message, Exception inner);
new System.IO.InternalBufferOverflowException : string * Exception -> System.IO.InternalBufferOverflowException
Public Sub New (message As String, inner As Exception)

參數

message
String

要指定給例外狀況的訊息。

inner
Exception

內部例外狀況。

備註

元件會使用這些建構函式來表示錯誤。 只有在擴充 類別或 .NET Framework 時,才使用它們。 此例外狀況表示內部緩衝區已溢位,而且用戶應該在其程式代碼中採取適當的步驟,以確保其能正確復原。 溢位的原因通常是短時間內太多變更,導致內部通知緩衝區溢位。 若要解決此問題,請使用 FileSystemWatcher.NotifyFilterFileSystemWatcher.IncludeSubdirectories 屬性來篩選掉不必要的變更通知。 您也可以透過 FileSystemWatcher.InternalBufferSize 屬性增加內部緩衝區的大小。 不過,增加緩衝區的大小很昂貴,因此請盡可能讓緩衝區保持小。

另請參閱

適用於