System.Reflection.TargetParameterCountException Class

public sealed class TargetParameterCountException : ApplicationException

Base Types

Object
  Exception
    ApplicationException
      TargetParameterCountException

Assembly

mscorlib

Library

Reflection

Summary

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.

Description

This exception is thrown by types in the Reflection Library, when attempting to dynamically invoke members.

See Also

System.Reflection Namespace

Members

TargetParameterCountException Constructors

TargetParameterCountException() Constructor
TargetParameterCountException(System.String) Constructor
TargetParameterCountException(System.String, System.Exception) Constructor


TargetParameterCountException() Constructor

public TargetParameterCountException();

Summary

Constructs and initializes a new instance of the TargetParameterCountException class.

Description

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 .

See Also

System.Reflection.TargetParameterCountException Class, System.Reflection Namespace

TargetParameterCountException(System.String) Constructor

public TargetParameterCountException(string message);

Summary

Constructs and initializes a new instance of the TargetParameterCountException class.

Parameters

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.

Description

This constructor initializes the System.Reflection.TargetParameterCountException.Message property of the new instance using message. If message is null , 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 .

See Also

System.Reflection.TargetParameterCountException Class, System.Reflection Namespace

TargetParameterCountException(System.String, System.Exception) Constructor

public TargetParameterCountException(string message, Exception inner);

Summary

Constructs and initializes a new instance of the TargetParameterCountException class.

Parameters

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 .

Description

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 is null , 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.]

See Also

System.Reflection.TargetParameterCountException Class, System.Reflection Namespace