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 TargetParameterCountException( );
   public TargetParameterCountException(string message);
   public TargetParameterCountException(string message, Exception inner);
}

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.ApplicationException TargetParameterCountException

Get C# in a Nutshell, Second Edition 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.