NotSupportedException Oluşturucular

Tanım

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

Aşırı Yüklemeler

NotSupportedException()

Sınıfının yeni bir örneğini NotSupportedException başlatır ve yeni örneğin özelliğini hatayı açıklayan sistem tarafından sağlanan bir iletiye ayarlar Message . Bu ileti, geçerli sistem kültürünü göz önünde bulundurur.

NotSupportedException(String)

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

NotSupportedException(SerializationInfo, StreamingContext)
Geçersiz.

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

NotSupportedException(String, Exception)

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

NotSupportedException()

Source:
NotSupportedException.cs
Source:
NotSupportedException.cs
Source:
NotSupportedException.cs

Sınıfının yeni bir örneğini NotSupportedException başlatır ve yeni örneğin özelliğini hatayı açıklayan sistem tarafından sağlanan bir iletiye ayarlar Message . Bu ileti, geçerli sistem kültürünü göz önünde bulundurur.

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

Açıklamalar

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

NotSupportedException(String)

Source:
NotSupportedException.cs
Source:
NotSupportedException.cs
Source:
NotSupportedException.cs

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

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

Parametreler

message
String

String Hatayı açıklayan bir. içeriğinin message 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çıklamalar

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

Özellik Değer
InnerException null.
Message Hata iletisi dizesi.

Şunlara uygulanır

NotSupportedException(SerializationInfo, StreamingContext)

Source:
NotSupportedException.cs
Source:
NotSupportedException.cs
Source:
NotSupportedException.cs

Dikkat

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

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

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

NotSupportedException(String, Exception)

Source:
NotSupportedException.cs
Source:
NotSupportedException.cs
Source:
NotSupportedException.cs

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

public:
 NotSupportedException(System::String ^ message, Exception ^ innerException);
public NotSupportedException (string message, Exception innerException);
public NotSupportedException (string? message, Exception? innerException);
new NotSupportedException : string * Exception -> NotSupportedException
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, geçerli özel durum iç özel durumu işleyen bir catch blokta oluşturulur.

Açıklamalar

Bir önceki özel durumun doğrudan bir sonucu olarak oluşturulan bir özel durum, InnerException özelliğindeki önceki özel duruma başvuru içermelidir. InnerException özelliği, oluşturucuya iletilen aynı değeri ya da InnerException özelliği oluşturucuya iç özel durum değeri sağlamıyorsa null değerini döndürür.

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