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

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


RegistrationException Constructors

Definition

Initializes a new instance of the RegistrationException class.

Overloads

RegistrationException()

Initializes a new instance of the RegistrationException class.

RegistrationException(String)

Initializes a new instance of the RegistrationException class with a specified error message.

RegistrationException(String, Exception)

Initializes a new instance of the RegistrationException class with a specified error message and nested exception.

RegistrationException()

Initializes a new instance of the RegistrationException class.

C#
public RegistrationException();

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

RegistrationException(String)

Initializes a new instance of the RegistrationException class with a specified error message.

C#
public RegistrationException(string msg);

Parameters

msg
String

The message displayed to the client when the exception is thrown.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 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

RegistrationException(String, Exception)

Initializes a new instance of the RegistrationException class with a specified error message and nested exception.

C#
public RegistrationException(string msg, Exception inner);

Parameters

msg
String

The message displayed to the client when the exception is thrown.

inner
Exception

The nested 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