語言

InternalBufferOverflowException 建構函式

定義

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

多載

名稱 Description
InternalBufferOverflowException()

初始化該類別的新預設實例 InternalBufferOverflowException 。

InternalBufferOverflowException(String)

初始化該類別的新實例 InternalBufferOverflowException ,並指定要顯示的錯誤訊息。

InternalBufferOverflowException(SerializationInfo, StreamingContext)
已淘汰.

初始化一個新的、空的類別實例 InternalBufferOverflowException ,該類別可使用指定的 SerializationInfo 和 StreamingContext 物件序列化。

InternalBufferOverflowException(String, Exception)

初始化一個新的類別實例 InternalBufferOverflowException ,並指定要顯示的訊息並指定產生的內部例外。

InternalBufferOverflowException()

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

初始化該類別的新預設實例 InternalBufferOverflowException 。

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

備註

這些構造子被元件用來表示錯誤。 只有在擴充類別或 .NET Framework 時才使用。 此例外表示內部緩衝區已溢出,使用者應在程式碼中採取適當步驟以確保能正常恢復。 溢位的原因通常是在短時間內變更過多,導致內部通知緩衝區溢位。 要解決這個問題,可以用 FileSystemWatcher.NotifyFilter 和 FileSystemWatcher.IncludeSubdirectories 屬性來過濾不需要的變更通知。 你也可以透過這個 FileSystemWatcher.InternalBufferSize 屬性增加內部緩衝區的大小。 不過,增加緩衝區大小成本較高,因此盡量保持緩衝區最小。

另請參閱

適用於

InternalBufferOverflowException(String)

來源:
InternalBufferOverflowException.cs
來源:
InternalBufferOverflowException.cs
來源:
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.NotifyFilter 和 FileSystemWatcher.IncludeSubdirectories 屬性來過濾不需要的變更通知。 你也可以透過這個 FileSystemWatcher.InternalBufferSize 屬性增加內部緩衝區的大小。 不過,增加緩衝區大小成本較高,因此盡量保持緩衝區最小。

另請參閱

適用於

InternalBufferOverflowException(SerializationInfo, StreamingContext)

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

警告

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

初始化一個新的、空的類別實例 InternalBufferOverflowException ,該類別可使用指定的 SerializationInfo 和 StreamingContext 物件序列化。

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);
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}")>]
new System.IO.InternalBufferOverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.InternalBufferOverflowException
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.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.NotifyFilter 和 FileSystemWatcher.IncludeSubdirectories 屬性來過濾不需要的變更通知。 你也可以透過這個 FileSystemWatcher.InternalBufferSize 屬性增加內部緩衝區的大小。 不過,增加緩衝區大小成本較高,因此盡量保持緩衝區最小。

另請參閱

適用於