1 <Type Name="AmbiguousMatchException" FullName="System.Reflection.AmbiguousMatchException" FullNameSP="System_Reflection_AmbiguousMatchException" Maintainer="ecma">
2 <TypeSignature Language="ILASM" Value=".class public sealed serializable AmbiguousMatchException extends System.SystemException" />
3 <TypeSignature Language="C#" Value="public sealed class AmbiguousMatchException : SystemException" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit AmbiguousMatchException extends System.SystemException" />
5 <MemberOfLibrary>Reflection</MemberOfLibrary>
7 <AssemblyName>mscorlib</AssemblyName>
8 <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
9 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
10 <AssemblyVersion>2.0.0.0</AssemblyVersion>
11 <AssemblyVersion>4.0.0.0</AssemblyVersion>
13 <ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
15 <BaseTypeName>System.SystemException</BaseTypeName>
20 <AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
25 <para>Represents the error that occurs when binding to a method or retrieving custom attributes results
26 in more than one item matching the specified criteria.</para>
30 <see cref="T:System.Reflection.AmbiguousMatchException" /> is thrown when a search that
31 is intended to return no more than one match, detects multiple matching items.
32 For example, this exception is thrown when the <see cref="M:System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo,System.Type)" /> methods (which return a single custom attribute),
33 find multiple occurrences of the attribute.</para>
37 <Member MemberName=".ctor">
38 <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor()" />
39 <MemberSignature Language="C#" Value="public AmbiguousMatchException ();" />
40 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
41 <MemberType>Constructor</MemberType>
43 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
44 <AssemblyVersion>2.0.0.0</AssemblyVersion>
45 <AssemblyVersion>4.0.0.0</AssemblyVersion>
51 <para>Constructs and initializes a new instance of the <see cref="T:System.Reflection.AmbiguousMatchException" />
55 <para>This constructor initializes the <see cref="!:System.Reflection.AmbiguousMatchException.Message" /> property of the new
56 instance to a system-supplied message that describes the error, such as "Ambiguous match found."
57 This message takes into account the current system culture.</para>
58 <para>The <see cref="!:System.Reflection.AmbiguousMatchException.InnerException" /> property is initialized to <see langword="null" />
62 <Excluded>0</Excluded>
64 <Member MemberName=".ctor">
65 <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message)" />
66 <MemberSignature Language="C#" Value="public AmbiguousMatchException (string message);" />
67 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message) cil managed" />
68 <MemberType>Constructor</MemberType>
70 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
71 <AssemblyVersion>2.0.0.0</AssemblyVersion>
72 <AssemblyVersion>4.0.0.0</AssemblyVersion>
76 <Parameter Name="message" Type="System.String" />
79 <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="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.</param>
81 <para>Constructs and initializes a new instance of the <see cref="T:System.Reflection.AmbiguousMatchException" />
85 <para>This constructor initializes the <see cref="!:System.Reflection.AmbiguousMatchException.Message" /> property of the new instance using <paramref name="message" />. If <paramref name="message" /> is
86 <see langword="null" />, the <see cref="!:System.Reflection.AmbiguousMatchException.Message" /> property is initialized to the
87 system-supplied message provided by the constructor that takes no
89 <para> The <see cref="!:System.Reflection.AmbiguousMatchException.InnerException" /> property is initialized to <see langword="null" />.</para>
92 <Excluded>0</Excluded>
94 <Member MemberName=".ctor">
95 <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message, class System.Exception inner)" />
96 <MemberSignature Language="C#" Value="public AmbiguousMatchException (string message, Exception inner);" />
97 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, class System.Exception inner) cil managed" />
98 <MemberType>Constructor</MemberType>
100 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
101 <AssemblyVersion>2.0.0.0</AssemblyVersion>
102 <AssemblyVersion>4.0.0.0</AssemblyVersion>
106 <Parameter Name="message" Type="System.String" />
107 <Parameter Name="inner" Type="System.Exception" />
110 <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="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.</param>
111 <param name="inner">An instance of <see cref="T:System.Exception" /> that is the cause of the current Exception. If <paramref name="inner" /> is non-null, then the current Exception was raised in a catch block handling <paramref name="inner" /> .</param>
113 <para>Constructs and initializes a new instance of the <see cref="T:System.Reflection.AmbiguousMatchException" />
117 <para>This constructor initializes the <see cref="!:System.Reflection.AmbiguousMatchException.Message" /> property of the new instance using <paramref name="message" />, and
118 the <see cref="!:System.Reflection.AmbiguousMatchException.InnerException" /> property using <paramref name="inner" />. If <paramref name="message" /> is <see langword="null" />,
119 the <see cref="!:System.Reflection.AmbiguousMatchException.Message" /> property is initialized to the
120 system-supplied message provided by the constructor that takes no
123 <block subset="none" type="note"> For information on inner exceptions,
124 see <see cref="P:System.Exception.InnerException" />.</block>
128 <Excluded>0</Excluded>
131 <TypeExcluded>0</TypeExcluded>