NotSupportedException Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
NotSupportedException sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| NotSupportedException() |
Yeni örneğin özelliğini hatayı açıklayan sistem tarafından sağlanan bir iletiye ayarlayarak Message sınıfının yeni bir örneğini NotSupportedException başlatır. Bu ileti geçerli sistem kültürünü dikkate alır. |
| NotSupportedException(String) |
Belirtilen bir hata iletisiyle sınıfının yeni bir örneğini NotSupportedException başlatır. |
| NotSupportedException(SerializationInfo, StreamingContext) |
Geçersiz.
Serileştirilmiş verilerle sınıfının yeni bir örneğini NotSupportedException 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()
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
Yeni örneğin özelliğini hatayı açıklayan sistem tarafından sağlanan bir iletiye ayarlayarak Message sınıfının yeni bir örneğini NotSupportedException başlatır. Bu ileti geçerli sistem kültürünü dikkate alır.
public:
NotSupportedException();
public NotSupportedException();
Public Sub New ()
Açıklamalar
Aşağıdaki tabloda, örneğinin ilk özellik değerleri gösterilmektedir NotSupportedException.
| Mülkiyet | Değer |
|---|---|
| InnerException |
null. |
| Message | Yerelleştirilmiş hata iletisi dizesi. |
Şunlara uygulanır
NotSupportedException(String)
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
Belirtilen bir 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
Hatayı açıklayan bir String. içeriğinin message insanlar tarafından anlaşılması amaçlanmıştı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çıklamalar
Aşağıdaki tabloda, örneğinin ilk özellik değerleri gösterilmektedir NotSupportedException.
| Mülkiyet | Değer |
|---|---|
| InnerException |
null. |
| Message | Hata iletisi dizesi. |
Şunlara uygulanır
NotSupportedException(SerializationInfo, StreamingContext)
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.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 NotSupportedException başlatır.
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);
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}")>]
new NotSupportedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> NotSupportedException
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 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. Daha fazla bilgi için bkz. XML ve SOAP Serileştirme
Ayrıca bkz.
Şunlara uygulanır
NotSupportedException(String, Exception)
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- NotSupportedException.cs
- Kaynak:
- 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
Önceki bir özel durumun doğrudan sonucu olarak oluşan bir özel durum, özelliğindeki önceki özel duruma başvuru içermelidir InnerException .
InnerException özelliği oluşturucuya geçirilen aynı değeri döndürür veya null özelliği oluşturucuya iç özel durum değeri sağlamaz.InnerException
Aşağıdaki tabloda, örneğinin ilk özellik değerleri gösterilmektedir NotSupportedException.
| Mülkiyet | Değer |
|---|---|
| InnerException | İç özel durum başvurusu. |
| Message | Hata iletisi dizesi. |