Прочетете на английски Редактиране

Споделяне чрез


DatabaseNotEnabledForNotificationException Constructors

Definition

Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

Overloads

DatabaseNotEnabledForNotificationException()

Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

DatabaseNotEnabledForNotificationException(String)

Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

DatabaseNotEnabledForNotificationException(String, Exception)

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()

Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

C#
public DatabaseNotEnabledForNotificationException();

Remarks

The DatabaseNotEnabledForNotificationException creates a new instance of the DatabaseNotEnabledForNotificationException class with all fields set to their default values.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DatabaseNotEnabledForNotificationException(String)

Initializes a new instance of the DatabaseNotEnabledForNotificationException class.

C#
public DatabaseNotEnabledForNotificationException(string message);

Parameters

message
String

A string that describes the error.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DatabaseNotEnabledForNotificationException(String, Exception)

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.

C#
public DatabaseNotEnabledForNotificationException(string message, Exception innerException);

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1