public sealed class TargetParameterCountException : ApplicationException
Object
Exception
ApplicationException
TargetParameterCountException
mscorlib
Reflection
Represents the error that occurs when the number of parameters passed in the invocation of a member does not match the number of parameters required by the contract of that member.
This exception is thrown by types in the Reflection Library, when attempting to dynamically invoke members.
System.Reflection Namespace
TargetParameterCountException Constructors
TargetParameterCountException() Constructor
TargetParameterCountException(System.String) Constructor
TargetParameterCountException(System.String, System.Exception) Constructor
public TargetParameterCountException();
Constructs and initializes a new instance of the TargetParameterCountException class.
This constructor initializes the System.Reflection.TargetParameterCountException.Message property of the new instance to a system-supplied message that describes the error, such as "Parameter count mismatch." This message takes into account the current system culture.The System.Reflection.TargetParameterCountException.InnerException property of the new instance is initialized to
null
.
System.Reflection.TargetParameterCountException Class, System.Reflection Namespace
public TargetParameterCountException(string message);
Constructs and initializes a new instance of the TargetParameterCountException class.
- message
- A String that describes the error. The content of message 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.
This constructor initializes the System.Reflection.TargetParameterCountException.Message property of the new instance using message. If message isnull
, the System.Reflection.TargetParameterCountException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.The System.Reflection.TargetParameterCountException.InnerException property is initialized to
null
.
System.Reflection.TargetParameterCountException Class, System.Reflection Namespace
public TargetParameterCountException(string message, Exception inner);
Constructs and initializes a new instance of the TargetParameterCountException class.
- message
- A String that describes the error. The content of message 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.
- inner
- An instance of Exception that is the cause of the current Exception. If innerException is non-null, then the current Exception was raised in a catch block handling innerException .
This constructor initializes the System.Reflection.TargetParameterCountException.Message property of the new instance using message, and the System.Reflection.TargetParameterCountException.InnerException property using inner. If message isnull
, the System.Reflection.TargetParameterCountException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.[Note: For information on inner exceptions, see System.Exception.InnerException.]
System.Reflection.TargetParameterCountException Class, System.Reflection Namespace