แก้ไข

แชร์ผ่าน


ErrorEventArgs Constructors

Definition

Initializes a new instance of the ErrorEventArgs class.

Overloads

ErrorEventArgs(Exception)

Initializes a new instance of the ErrorEventArgs class with the specified exception.

ErrorEventArgs(Boolean, Exception)

Initializes a new instance of the ErrorEventArgs class with the specified cancel state and exception.

ErrorEventArgs(Exception)

Initializes a new instance of the ErrorEventArgs class with the specified exception.

public:
 ErrorEventArgs(Exception ^ exception);
public ErrorEventArgs (Exception exception);
new System.IdentityModel.Services.ErrorEventArgs : Exception -> System.IdentityModel.Services.ErrorEventArgs
Public Sub New (exception As Exception)

Parameters

exception
Exception

The exception that occurred. Sets the Exception property.

Exceptions

exception is null.

Remarks

The Cancel property of the new ErrorEventArgs instance is initialized to false; the event is not cancelled.

Applies to

ErrorEventArgs(Boolean, Exception)

Initializes a new instance of the ErrorEventArgs class with the specified cancel state and exception.

public:
 ErrorEventArgs(bool cancel, Exception ^ exception);
public ErrorEventArgs (bool cancel, Exception exception);
new System.IdentityModel.Services.ErrorEventArgs : bool * Exception -> System.IdentityModel.Services.ErrorEventArgs
Public Sub New (cancel As Boolean, exception As Exception)

Parameters

cancel
Boolean

The initial cancel state. Sets the Cancel property.

exception
Exception

The exception that occurred. Sets the Exception property.

Exceptions

exception is null.

Applies to