OverflowException Oluşturucular

Tanım

OverflowException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

OverflowException()

OverflowException sınıfının yeni bir örneğini başlatır.

OverflowException(String)

Belirtilen hata iletisiyle sınıfının yeni bir örneğini OverflowException başlatır.

OverflowException(SerializationInfo, StreamingContext)
Geçersiz.

OverflowException sınıfının yeni bir örneğini serileştirilmiş verilerle başlatır.

OverflowException(String, Exception)

Sınıfın OverflowException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

OverflowException()

Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs

OverflowException sınıfının yeni bir örneğini başlatır.

public:
 OverflowException();
public OverflowException ();
Public Sub New ()

Açıklamalar

Aşağıdaki tablo, OverflowException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException Null başvuru (Nothing Visual Basic'te).
Message Yerelleştirilmiş hata ileti dizesi.

Şunlara uygulanır

OverflowException(String)

Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs

Belirtilen hata iletisiyle sınıfının yeni bir örneğini OverflowException başlatır.

public:
 OverflowException(System::String ^ message);
public OverflowException (string message);
public OverflowException (string? message);
new OverflowException : string -> OverflowException
Public Sub New (message As String)

Parametreler

message
String

Hatayı açıklayan ileti.

Açıklamalar

içeriğinin message kullanıcı tarafından anlaşılabilmesi gerekir. Bu yapıcının çağırıcısı, bu dizenin geçerli sistem kültürü için yerelleştirilmiş olduğundan emin olmak için gereklidir.

Aşağıdaki tablo, OverflowException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException Null başvuru (Nothing Visual Basic'te).
Message Hata iletisi dizesi.

Şunlara uygulanır

OverflowException(SerializationInfo, StreamingContext)

Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs

Dikkat

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

OverflowException sınıfının yeni bir örneğini serileştirilmiş verilerle başlatır.

protected:
 OverflowException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected OverflowException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected OverflowException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new OverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OverflowException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new OverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OverflowException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametreler

info
SerializationInfo

Serileştirilmiş nesne verilerini tutan nesne.

context
StreamingContext

Kaynak veya hedefle ilgili bağlamsal bilgi.

Öznitelikler

Açıklamalar

Bu oluşturucu, bir akış üzerinden iletilen özel durum nesnesini yeniden oluşturmak için seri durumundan çıkarma sırasında çağrılır.

Şunlara uygulanır

OverflowException(String, Exception)

Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs

Sınıfın OverflowException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

public:
 OverflowException(System::String ^ message, Exception ^ innerException);
public OverflowException (string message, Exception innerException);
public OverflowException (string? message, Exception? innerException);
new OverflowException : string * Exception -> OverflowException
Public Sub New (message As String, innerException As Exception)

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

innerException
Exception

Geçerli özel durumun nedeni olan özel durum. innerException Parametre null başvuru değilse (NothingVisual Basic'te), geçerli özel durum iç özel durumu işleyen bir catch blokta oluşturulur.

Açıklamalar

Önceki bir özel durumun doğrudan sonucu olarak oluşan bir özel durum, özelliğindeki InnerException önceki özel duruma başvuru içerebilir. InnerException özelliği oluşturucuya geçirilen aynı değeri veya özellik oluşturucuya iç özel durum değeri sağlamazsa InnerException null başvuruyu (NothingVisual Basic'te) döndürür.

Aşağıdaki tablo, OverflowException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException İç özel duruma başvuru.
Message Hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır