Name

TargetParameterCountException

Synopsis

This exception is thrown when a method is invoked with an incorrect number of parameters. Note that this can only come when invoking methods via reflection, since the compiler detects any normal parameter count errors.

public sealed class TargetParameterCountException : ApplicationException {
// Public Constructors
   public method TargetParameterCountException();  
   public method TargetParameterCountException(
        string message);  
   public method TargetParameterCountException(string message, 
        Exception inner);  
}

Hierarchy

System.ObjectSystem.Exception(System.Runtime.Serialization.ISerializable)System.ApplicationExceptionTargetParameterCountException

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.