CustomAttributeFormatException Oluşturucular

Tanım

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

Aşırı Yüklemeler

CustomAttributeFormatException()

Sınıfın CustomAttributeFormatException yeni bir örneğini varsayılan özelliklerle başlatır.

CustomAttributeFormatException(String)

Belirtilen iletiyle CustomAttributeFormatException sınıfının yeni bir örneğini başlatır.

CustomAttributeFormatException(SerializationInfo, StreamingContext)
Geçersiz.

Belirtilen serileştirme ve bağlam bilgileriyle sınıfının yeni bir örneğini CustomAttributeFormatException başlatır.

CustomAttributeFormatException(String, Exception)

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

CustomAttributeFormatException()

Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs

Sınıfın CustomAttributeFormatException yeni bir örneğini varsayılan özelliklerle başlatır.

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

Açıklamalar

Bu oluşturucu, bir örneğini CustomAttributeFormatException boş bir ileti dizesiyle başlatır ve kök neden özel durumu olarak nullayarlanır.

Bu oluşturucu nesnenin Exception özelliklerini aşağıdaki gibi ayarlar:

Özellik Değer
InnerException null
Message Boş dize ("").

Şunlara uygulanır

CustomAttributeFormatException(String)

Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs

Belirtilen iletiyle CustomAttributeFormatException sınıfının yeni bir örneğini başlatır.

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

Parametreler

message
String

Bu özel durumun neden oluşturulduğuna ilişkin ileti.

Açıklamalar

Bu oluşturucu Exception nesnesinin özelliklerini aşağıdaki gibi ayarlar:

Özellik Değer
InnerException null

Ayrıca bkz.

Şunlara uygulanır

CustomAttributeFormatException(SerializationInfo, StreamingContext)

Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs

Dikkat

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

Belirtilen serileştirme ve bağlam bilgileriyle sınıfının yeni bir örneğini CustomAttributeFormatException başlatır.

protected:
 CustomAttributeFormatException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CustomAttributeFormatException (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 CustomAttributeFormatException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Reflection.CustomAttributeFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.CustomAttributeFormatException
[<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 System.Reflection.CustomAttributeFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.CustomAttributeFormatException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametreler

info
SerializationInfo

Özel özniteliği seri hale getirme veya seri durumdan çıkarma verileri.

context
StreamingContext

Özel özniteliğin kaynağı ve hedefi.

Öznitelikler

Şunlara uygulanır

CustomAttributeFormatException(String, Exception)

Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs
Kaynak:
CustomAttributeFormatException.cs

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

public:
 CustomAttributeFormatException(System::String ^ message, Exception ^ inner);
public CustomAttributeFormatException (string? message, Exception? inner);
public CustomAttributeFormatException (string message, Exception inner);
new System.Reflection.CustomAttributeFormatException : string * Exception -> System.Reflection.CustomAttributeFormatException
Public Sub New (message As String, inner As Exception)

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

inner
Exception

Geçerli özel durumun nedeni olan özel durum. inner parametresi değilsenull, 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, CustomAttributeFormatException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException Özel inner durum.
Message Hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır