通过


InternalBufferOverflowException 构造函数

定义

初始化 InternalBufferOverflowException 类的新实例。

重载

名称 说明
InternalBufferOverflowException()

初始化类的新默认实例 InternalBufferOverflowException

InternalBufferOverflowException(String)

使用要显示的错误消息初始化类的新实例 InternalBufferOverflowException

InternalBufferOverflowException(SerializationInfo, StreamingContext)
已过时.

初始化使用指定SerializationInfo对象StreamingContext和对象可序列化的类的新空实例InternalBufferOverflowException

InternalBufferOverflowException(String, Exception)

使用要显示的消息和指定的生成的内部异常初始化类的新实例 InternalBufferOverflowException

InternalBufferOverflowException()

Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs

初始化类的新默认实例 InternalBufferOverflowException

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

注解

组件使用这些构造函数来表示错误。 仅当扩展类或 .NET Framework 时使用它们。 此异常表示内部缓冲区已溢出,用户应在其代码中采取适当的步骤,以确保其正确恢复。 溢出的原因通常是在短时间内发生过多的更改,导致内部通知缓冲区溢出。 若要解决此问题,请使用 FileSystemWatcher.NotifyFilter 属性 FileSystemWatcher.IncludeSubdirectories 筛选掉不需要的更改通知。 还可以通过 FileSystemWatcher.InternalBufferSize 属性增加内部缓冲区的大小。 但是,增加缓冲区的大小非常昂贵,因此请尽可能小地保留缓冲区。

另请参阅

适用于

InternalBufferOverflowException(String)

Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
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)

Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs

注意

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

初始化使用指定SerializationInfo对象StreamingContext和对象可序列化的类的新空实例InternalBufferOverflowException

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)

Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
InternalBufferOverflowException.cs
Source:
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 属性增加内部缓冲区的大小。 但是,增加缓冲区的大小非常昂贵,因此请尽可能小地保留缓冲区。

另请参阅

适用于