OutOfMemoryException Oluşturucular

Tanım

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

Aşırı Yüklemeler

OutOfMemoryException()

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

OutOfMemoryException(String)

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

OutOfMemoryException(SerializationInfo, StreamingContext)
Geçersiz.

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

OutOfMemoryException(String, Exception)

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

OutOfMemoryException()

Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs

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

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

Açıklamalar

Bu oluşturucu, yeni örneğin özelliğini sistem tarafından sağlanan ve "Programın yürütülmesine devam etmek için yeterli bellek yoktu" gibi hatayı açıklayan bir iletiyle başlatır Message . Bu ileti geçerli sistem kültürünü hesaba katıyor.

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

Özellik Değer
InnerException null.
Message Yerelleştirilmiş hata ileti dizesi.

Şunlara uygulanır

OutOfMemoryException(String)

Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs

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

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

Parametreler

message
String

Hatayı açıklayan ileti.

Açıklamalar

parametresinin message içeriği insanlar tarafından anlaşılması amaçlanmıştır. 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, OutOfMemoryException öğ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

OutOfMemoryException(SerializationInfo, StreamingContext)

Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs

Dikkat

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

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

protected:
 OutOfMemoryException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected OutOfMemoryException (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 OutOfMemoryException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new OutOfMemoryException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OutOfMemoryException
[<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 OutOfMemoryException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OutOfMemoryException
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. Daha fazla bilgi için bkz. XML ve SOAP Serileştirme.

Ayrıca bkz.

Şunlara uygulanır

OutOfMemoryException(String, Exception)

Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs
Source:
OutOfMemoryException.cs

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

public:
 OutOfMemoryException(System::String ^ message, Exception ^ innerException);
public OutOfMemoryException (string message, Exception innerException);
public OutOfMemoryException (string? message, Exception? innerException);
new OutOfMemoryException : string * Exception -> OutOfMemoryException
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, OutOfMemoryException öğ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