AmbiguousMatchException Sınıf
Tanım
Bir üyeye bağlama sırasında oluşturulan özel durum, bağlama ölçütleriyle eşleşen birden fazla üyenin sonucunu elde ediyor.The exception that is thrown when binding to a member results in more than one member matching the binding criteria. Bu sınıf devralınamaz.This class cannot be inherited.
public ref class AmbiguousMatchException sealed : Exception
public ref class AmbiguousMatchException sealed : SystemException
public sealed class AmbiguousMatchException : Exception
public sealed class AmbiguousMatchException : SystemException
[System.Serializable]
public sealed class AmbiguousMatchException : SystemException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AmbiguousMatchException : SystemException
type AmbiguousMatchException = class
inherit Exception
type AmbiguousMatchException = class
inherit SystemException
[<System.Serializable>]
type AmbiguousMatchException = class
inherit SystemException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AmbiguousMatchException = class
inherit SystemException
Public NotInheritable Class AmbiguousMatchException
Inherits Exception
Public NotInheritable Class AmbiguousMatchException
Inherits SystemException
- Devralma
- Devralma
- Öznitelikler
Açıklamalar
AmbiguousMatchException , 0x8000211D değerine sahip HRESULT COR_E_AMBIGUOUSMATCH kullanır.AmbiguousMatchException uses the HRESULT COR_E_AMBIGUOUSMATCH which has the value 0x8000211D.
Bir AmbiguousMatchException üye geç bağlanan çağrıldığında ve bağlama ölçütlerine uyan birden fazla aşırı yükleme olduğunda veya yalnızca tek bir sonuç döndürebilen bir yansıma yöntemine geçilen birden fazla üye olduğunda oluşturulur (örneğin, Type.GetMethod veya Type.GetProperty ).An AmbiguousMatchException is thrown when a member is invoked late-bound and multiple overloads satisfy the binding criteria, or when more than one member matches the binding criteria passed to a reflection method that can return only a single result (for example, Type.GetMethod or Type.GetProperty).
Oluşturucular
| AmbiguousMatchException() |
Boş bir ileti dizesiyle sınıfının yeni bir örneğini başlatır AmbiguousMatchException ve kök neden özel durumu olarak ayarlanır |
| AmbiguousMatchException(String) |
Sınıfın yeni bir örneğini AmbiguousMatchException , ileti dizesi verilen iletiye ve kök neden özel durumu olarak ayarlanmış olarak başlatır |
| AmbiguousMatchException(String, Exception) |
AmbiguousMatchExceptionBelirtilen bir hata iletisiyle sınıfın yeni bir örneğini ve bu özel durumun nedeni olan iç özel duruma bir başvuruyu başlatır.Initializes a new instance of the AmbiguousMatchException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
Özellikler
| Data |
Özel durum hakkında ek kullanıcı tanımlı bilgiler sağlayan anahtar/değer çiftleri koleksiyonunu alır.Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Devralındığı yer: Exception) |
| HelpLink |
Bu özel durumla ilişkili Yardım dosyasının bağlantısını alır veya ayarlar.Gets or sets a link to the help file associated with this exception. (Devralındığı yer: Exception) |
| HResult |
Belirli bir özel duruma atanan kodlanmış bir sayısal değer olan HRESULT 'yi alır veya ayarlar.Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Devralındığı yer: Exception) |
| InnerException |
ExceptionGeçerli özel duruma neden olan örneği alır.Gets the Exception instance that caused the current exception. (Devralındığı yer: Exception) |
| Message |
Geçerli özel durumu açıklayan bir ileti alır.Gets a message that describes the current exception. (Devralındığı yer: Exception) |
| Source |
Uygulamanın veya hataya neden olan nesnenin adını alır veya ayarlar.Gets or sets the name of the application or the object that causes the error. (Devralındığı yer: Exception) |
| StackTrace |
Çağrı yığınında anlık çerçevelerin dize gösterimini alır.Gets a string representation of the immediate frames on the call stack. (Devralındığı yer: Exception) |
| TargetSite |
Geçerli özel durumu oluşturan yöntemi alır.Gets the method that throws the current exception. (Devralındığı yer: Exception) |
Yöntemler
| Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object. (Devralındığı yer: Object) |
| GetBaseException() |
Türetilmiş bir sınıfta geçersiz kılınırsa, Exception bir veya daha fazla sonraki özel durumun kök nedeni olan öğesini döndürür.When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Devralındığı yer: Exception) |
| GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
| GetObjectData(SerializationInfo, StreamingContext) |
Türetilmiş bir sınıfta geçersiz kılınırsa, SerializationInfo özel durum hakkındaki bilgileri ayarlar.When overridden in a derived class, sets the SerializationInfo with information about the exception. (Devralındığı yer: Exception) |
| GetType() |
Geçerli örneğin çalışma zamanı türünü alır.Gets the runtime type of the current instance. (Devralındığı yer: Exception) |
| MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
| ToString() |
Geçerli özel durumun dize gösterimini oluşturur ve döndürür.Creates and returns a string representation of the current exception. (Devralındığı yer: Exception) |
Ekinlikler
| SerializeObjectState |
Özel durum hakkında serileştirilmiş veri içeren bir özel durum nesnesi oluşturmak için bir özel durum serileştirildiğinde gerçekleşir.Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Devralındığı yer: Exception) |