Aracılığıyla paylaş


OverflowException Oluşturucular

Tanım

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

Aşırı Yüklemeler

Name Description
OverflowException()

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

OverflowException(String)

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

OverflowException(SerializationInfo, StreamingContext)
Geçersiz.

Serileştirilmiş verilerle sınıfının yeni bir örneğini OverflowException 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
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 tabloda, örneğinin ilk özellik değerleri gösterilmektedir OverflowException.

Mülkiyet Değer
InnerException Null başvuru (Nothing Visual Basic'te).
Message Yerelleştirilmiş hata iletisi dizesi.

Şunlara uygulanır

OverflowException(String)

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

Belirtilen bir 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

öğesinin message içeriği kullanıcı tarafından anlaşılabilir olmalıdır. Bu dizenin geçerli sistem kültürü için yerelleştirildiğinden emin olmak için bu oluşturucunun çağıranı gereklidir.

Aşağıdaki tabloda, örneğinin ilk özellik değerleri gösterilmektedir OverflowException.

Mülkiyet 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
Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs

Dikkat

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

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

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);
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}")>]
new OverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OverflowException
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 hedef hakkındaki bağlamsal bilgiler.

Öznitelikler

Açıklamalar

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

Şunlara uygulanır

OverflowException(String, Exception)

Kaynak:
OverflowException.cs
Kaynak:
OverflowException.cs
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 tabloda, örneğinin ilk özellik değerleri gösterilmektedir OverflowException.

Mülkiyet Değer
InnerException İç özel durum başvurusu.
Message Hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır