Share via


InternalBufferOverflowException 构造函数

定义

初始化 InternalBufferOverflowException 类的新实例。

重载

InternalBufferOverflowException()

初始化 InternalBufferOverflowException 类的新默认实例。

InternalBufferOverflowException(String)

通过指定要显示的错误信息来初始化 InternalBufferOverflowException 类的新实例。

InternalBufferOverflowException(SerializationInfo, StreamingContext)
已过时.

初始化 InternalBufferOverflowException 类的新的空实例,该实例可序列化且使用指定的 SerializationInfoStreamingContext

InternalBufferOverflowException(String, Exception)

通过指定要显示的消息和生成的内部异常来初始化 InternalBufferOverflowException 类的新实例。

InternalBufferOverflowException()

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

初始化 InternalBufferOverflowException 类的新默认实例。

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

注解

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

另请参阅

适用于

InternalBufferOverflowException(String)

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.NotifyFilterFileSystemWatcher.IncludeSubdirectories 属性筛选掉不需要的更改通知。 也可以通过 FileSystemWatcher.InternalBufferSize 属性增加内部缓冲区的大小。 但是,增加缓冲区大小的成本很高,因此请尽量减小缓冲区。

另请参阅

适用于

InternalBufferOverflowException(SerializationInfo, StreamingContext)

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.

初始化 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)

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.NotifyFilterFileSystemWatcher.IncludeSubdirectories 属性筛选掉不需要的更改通知。 也可以通过 FileSystemWatcher.InternalBufferSize 属性增加内部缓冲区的大小。 但是,增加缓冲区大小的成本很高,因此请尽量减小缓冲区。

另请参阅

适用于