ErrorWrapper 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 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
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.