DatabaseNotEnabledForNotificationException 构造函数

定义

初始化 DatabaseNotEnabledForNotificationException 类的新实例。Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

重载

DatabaseNotEnabledForNotificationException()

初始化 DatabaseNotEnabledForNotificationException 类的新实例。Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

DatabaseNotEnabledForNotificationException(String)

初始化 DatabaseNotEnabledForNotificationException 类的新实例。Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

DatabaseNotEnabledForNotificationException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 DatabaseNotEnabledForNotificationException 类的新实例。Initializes a new instance of the DatabaseNotEnabledForNotificationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

DatabaseNotEnabledForNotificationException()

初始化 DatabaseNotEnabledForNotificationException 类的新实例。Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

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

注解

DatabaseNotEnabledForNotificationException创建类的新实例 DatabaseNotEnabledForNotificationException ,所有字段都设置为其默认值。The DatabaseNotEnabledForNotificationException creates a new instance of the DatabaseNotEnabledForNotificationException class with all fields set to their default values.

适用于

DatabaseNotEnabledForNotificationException(String)

初始化 DatabaseNotEnabledForNotificationException 类的新实例。Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

public:
 DatabaseNotEnabledForNotificationException(System::String ^ message);
public DatabaseNotEnabledForNotificationException (string message);
new System.Web.Caching.DatabaseNotEnabledForNotificationException : string -> System.Web.Caching.DatabaseNotEnabledForNotificationException
Public Sub New (message As String)

参数

message
String

描述错误的字符串。A string that describes the error.

适用于

DatabaseNotEnabledForNotificationException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 DatabaseNotEnabledForNotificationException 类的新实例。Initializes a new instance of the DatabaseNotEnabledForNotificationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 DatabaseNotEnabledForNotificationException(System::String ^ message, Exception ^ innerException);
public DatabaseNotEnabledForNotificationException (string message, Exception innerException);
new System.Web.Caching.DatabaseNotEnabledForNotificationException : string * Exception -> System.Web.Caching.DatabaseNotEnabledForNotificationException
Public Sub New (message As String, innerException As Exception)

参数

message
String

解释异常原因的错误消息。The error message that explains the reason for the exception.

innerException
Exception

导致当前异常的异常。The exception that is the cause of the current exception. 如果 innerException 参数不为 null,则当前异常在处理内部异常的 catch 块中引发。If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

适用于