TargetInvocationException Sınıf
Tanım
Yansıma aracılığıyla çağrılan yöntemler tarafından oluşturulan özel durum.The exception that is thrown by methods invoked through reflection. Bu sınıf devralınamaz.This class cannot be inherited.
public ref class TargetInvocationException sealed : Exception
public ref class TargetInvocationException sealed : ApplicationException
public sealed class TargetInvocationException : Exception
public sealed class TargetInvocationException : ApplicationException
[System.Serializable]
public sealed class TargetInvocationException : ApplicationException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class TargetInvocationException : ApplicationException
type TargetInvocationException = class
inherit Exception
type TargetInvocationException = class
inherit ApplicationException
[<System.Serializable>]
type TargetInvocationException = class
inherit ApplicationException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TargetInvocationException = class
inherit ApplicationException
Public NotInheritable Class TargetInvocationException
Inherits Exception
Public NotInheritable Class TargetInvocationException
Inherits ApplicationException
- Devralma
- Devralma
- Öznitelikler
Açıklamalar
Daha fazla bilgi için bkz. Invoke.For more information, see Invoke.
TargetInvocationException
0x80131604 değerine sahip olan HRESULT COR_E_TARGETINVOCATION kullanır.TargetInvocationException
uses the HRESULT COR_E_TARGETINVOCATION which has the value 0x80131604.
Oluşturulduğunda, TargetInvocationException
yansıma aracılığıyla çağrılan yöntemi tarafından oluşturulan özel duruma bir başvuru geçirilir.When created, the TargetInvocationException
is passed a reference to the exception thrown by the method invoked through reflection. InnerExceptionÖzelliği, temel alınan özel durumu barındırır.The InnerException property holds the underlying exception.
Oluşturucular
TargetInvocationException(Exception) |
TargetInvocationExceptionBu özel durumun nedeni olan iç özel durum başvurusu ile sınıfın yeni bir örneğini başlatır.Initializes a new instance of the TargetInvocationException class with a reference to the inner exception that is the cause of this exception. |
TargetInvocationException(String, Exception) |
TargetInvocationExceptionBelirtilen 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 TargetInvocationException 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) |