ErrorEventArgs Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Exceptions
exception
is null
.
Applies to
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk