SystemException Sınıf
Tanım
Sistem özel durumlar ad alanı için temel sınıf olarak işlev görür.Serves as the base class for system exceptions namespace.
public ref class SystemException : Exception
public class SystemException : Exception
[System.Serializable]
public class SystemException : Exception
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class SystemException : Exception
type SystemException = class
inherit Exception
[<System.Serializable>]
type SystemException = class
inherit Exception
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SystemException = class
inherit Exception
Public Class SystemException
Inherits Exception
- Devralma
- Türetilmiş
- Öznitelikler
Açıklamalar
Bu sınıf, sistem özel durumlarını ve uygulama özel durumlarını ayırt etmek için bir yol olarak sağlanır.This class is provided as a means to differentiate between system exceptions and application exceptions. , Ve gibi bu özel durumların temel sınıfıdır ArgumentException FormatException InvalidOperationException .It is the base class of such exceptions as ArgumentException, FormatException, and InvalidOperationException.
Önemli
SystemException, Çeşitli özel durum türlerindeki temel sınıf olarak hizmet ettiğinden, kodunuz bir özel durum oluşturmamalıdır SystemException , ya da SystemException özgün özel durumu yeniden oluşturmaya karar vermediğiniz sürece bir özel durumu işlemeye çalışır.Because SystemException serves as the base class of a variety of exception types, your code should not throw a SystemException exception, nor should it attempt to handle a SystemException exception unless you intend to re-throw the original exception.
SystemException 0x80131501 değerine sahip HRESULT COR_E_SYSTEM kullanır.SystemException uses the HRESULT COR_E_SYSTEM, that has the value 0x80131501.
Oluşturucular
| SystemException() |
SystemException sınıfının yeni bir örneğini başlatır.Initializes a new instance of the SystemException class. |
| SystemException(SerializationInfo, StreamingContext) |
SystemException sınıfının yeni bir örneğini serileştirilmiş verilerle başlatır.Initializes a new instance of the SystemException class with serialized data. |
| SystemException(String) |
Belirtilen bir hata iletisiyle sınıfın yeni bir örneğini başlatır SystemException .Initializes a new instance of the SystemException class with a specified error message. |
| SystemException(String, Exception) |
SystemExceptionBelirtilen 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 SystemException 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) |