Cape Bad COParameter(String, Exception, String, Object) Constructor
Initializes a new instance of the CapeBadCOParameter class with a specified error message and a erence to the inner exception, the name of the parameter, and the parameter that caused the exception.
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public CapeBadCOParameter(
string message,
Exception inner,
string parameterName,
Object parameter
)VB
Public Sub New (
message As String,
inner As Exception,
parameterName As String,
parameter As Object
)Parameters
Remarks
The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
An exception that is thrown as a direct result of a previous exception should include a erence to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null erence if the InnerException property does not supply the inner exception value to the constructor.