TypeUnloadedException Oluşturucular

Tanım

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

Aşırı Yüklemeler

TypeUnloadedException()

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

TypeUnloadedException(String)

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

TypeUnloadedException(SerializationInfo, StreamingContext)
Geçersiz.

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

TypeUnloadedException(String, Exception)

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

TypeUnloadedException()

Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs

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

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

Açıklamalar

Bu oluşturucu, yeni örneğin özelliğini sistem tarafından sağlanan ve "Tür kaldırıldı" gibi hatayı açıklayan bir iletiye başlatır Message . Bu ileti geçerli sistem kültürünü hesaba katıyor.

Aşağıdaki tablo, TypeUnloadedException öğ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

TypeUnloadedException(String)

Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs

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

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

Parametreler

message
String

Hatayı açıklayan ileti.

Açıklamalar

Parametresinin message içeriği son kullanıcı tarafından anlaşılabilir olmalıdı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, TypeUnloadedException öğ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

TypeUnloadedException(SerializationInfo, StreamingContext)

Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs

Dikkat

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

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

protected:
 TypeUnloadedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TypeUnloadedException (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 TypeUnloadedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new TypeUnloadedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> TypeUnloadedException
[<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 TypeUnloadedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> TypeUnloadedException
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

TypeUnloadedException(String, Exception)

Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs
Source:
TypeUnloadedException.cs

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

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