3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 ////////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////////
9 // TargetParameterCountException is thrown when the number of parameter to an
11 // <OWNER>Microsoft</OWNER>
12 // invocation doesn't match the number expected.
17 namespace System
.Reflection
{
20 using SystemException
= System
.SystemException
;
21 using System
.Runtime
.Serialization
;
23 [System
.Runtime
.InteropServices
.ComVisible(true)]
25 public sealed class TargetParameterCountException
: Exception
{
27 public sealed class TargetParameterCountException
: ApplicationException
{
28 #endif //FEATURE_CORECLR
29 public TargetParameterCountException()
30 : base(Environment
.GetResourceString("Arg_TargetParameterCountException")) {
31 SetErrorCode(__HResults
.COR_E_TARGETPARAMCOUNT
);
34 public TargetParameterCountException(String message
)
36 SetErrorCode(__HResults
.COR_E_TARGETPARAMCOUNT
);
39 public TargetParameterCountException(String message
, Exception inner
)
40 : base(message
, inner
) {
41 SetErrorCode(__HResults
.COR_E_TARGETPARAMCOUNT
);
44 internal TargetParameterCountException(SerializationInfo info
, StreamingContext context
) : base (info
, context
) {