Share via


SqlNullValueException 构造函数

定义

初始化 SqlNullValueException 类的新实例。

重载

SqlNullValueException()

使用说明错误的系统提供的消息初始化 SqlNullValueException 类的新实例。

SqlNullValueException(String)

使用说明错误的指定消息初始化 SqlNullValueException 类的新实例。

SqlNullValueException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 SqlNullValueException 类的新实例。

SqlNullValueException()

Source:
SQLUtility.cs
Source:
SQLUtility.cs
Source:
SQLUtility.cs

使用说明错误的系统提供的消息初始化 SqlNullValueException 类的新实例。

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

注解

此构造函数将新实例的 属性初始化 Message 为描述错误的系统提供的消息,例如“DefaultMessageDisplayedByParameterlessCtorWriterMustSupply”此消息考虑了当前系统区域性。

下表显示了 InsufficientMemoryException 实例的初始属性值。

properties
InnerException null.
Message 本地化的错误消息字符串。

另请参阅

适用于

SqlNullValueException(String)

Source:
SQLUtility.cs
Source:
SQLUtility.cs
Source:
SQLUtility.cs

使用说明错误的指定消息初始化 SqlNullValueException 类的新实例。

public:
 SqlNullValueException(System::String ^ message);
public SqlNullValueException (string message);
public SqlNullValueException (string? message);
new System.Data.SqlTypes.SqlNullValueException : string -> System.Data.SqlTypes.SqlNullValueException
Public Sub New (message As String)

参数

message
String

描述该异常的消息。 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。

注解

下表显示了 SqlNullValueException 实例的初始属性值。

properties
InnerException null.
Message message 中指定的错误消息字符串。

另请参阅

适用于

SqlNullValueException(String, Exception)

Source:
SQLUtility.cs
Source:
SQLUtility.cs
Source:
SQLUtility.cs

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 SqlNullValueException 类的新实例。

public:
 SqlNullValueException(System::String ^ message, Exception ^ e);
public SqlNullValueException (string message, Exception e);
public SqlNullValueException (string? message, Exception? e);
new System.Data.SqlTypes.SqlNullValueException : string * Exception -> System.Data.SqlTypes.SqlNullValueException
Public Sub New (message As String, e As Exception)

参数

message
String

描述该异常的消息。 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。

e
Exception

导致当前异常的异常。 如果 innerException 参数不为 null,则当前异常将在处理内部异常的 catch 块中引发。

另请参阅

适用于