Bewerken

Delen via


ErrorWrapper Constructors

Definition

Initializes a new instance of the ErrorWrapper class.

Overloads

ErrorWrapper(Exception)

Initializes a new instance of the ErrorWrapper class with the HRESULT that corresponds to the exception supplied.

ErrorWrapper(Int32)

Initializes a new instance of the ErrorWrapper class with the HRESULT of the error.

ErrorWrapper(Object)

Initializes a new instance of the ErrorWrapper class with an object containing the HRESULT of the error.

ErrorWrapper(Exception)

Source:
ErrorWrapper.cs
Source:
ErrorWrapper.cs
Source:
ErrorWrapper.cs

Initializes a new instance of the ErrorWrapper class with the HRESULT that corresponds to the exception supplied.

public:
 ErrorWrapper(Exception ^ e);
public ErrorWrapper (Exception e);
new System.Runtime.InteropServices.ErrorWrapper : Exception -> System.Runtime.InteropServices.ErrorWrapper
Public Sub New (e As Exception)

Parameters

e
Exception

The exception to be converted to an error code.

Applies to

ErrorWrapper(Int32)

Source:
ErrorWrapper.cs
Source:
ErrorWrapper.cs
Source:
ErrorWrapper.cs

Initializes a new instance of the ErrorWrapper class with the HRESULT of the error.

public:
 ErrorWrapper(int errorCode);
public ErrorWrapper (int errorCode);
new System.Runtime.InteropServices.ErrorWrapper : int -> System.Runtime.InteropServices.ErrorWrapper
Public Sub New (errorCode As Integer)

Parameters

errorCode
Int32

The HRESULT of the error.

Applies to

ErrorWrapper(Object)

Source:
ErrorWrapper.cs
Source:
ErrorWrapper.cs
Source:
ErrorWrapper.cs

Initializes a new instance of the ErrorWrapper class with an object containing the HRESULT of the error.

public:
 ErrorWrapper(System::Object ^ errorCode);
public ErrorWrapper (object errorCode);
new System.Runtime.InteropServices.ErrorWrapper : obj -> System.Runtime.InteropServices.ErrorWrapper
Public Sub New (errorCode As Object)

Parameters

errorCode
Object

The object containing the HRESULT of the error.

Exceptions

The errorCode parameter is not an Int32 type.

Applies to