CustomAttributeFormatException Konstruktorok

Definíció

Inicializálja a CustomAttributeFormatException osztály új példányát.

Túlterhelések

Name Description
CustomAttributeFormatException()

Inicializálja az osztály új példányát CustomAttributeFormatException az alapértelmezett tulajdonságokkal.

CustomAttributeFormatException(String)

Inicializálja az osztály új példányát CustomAttributeFormatException a megadott üzenettel.

CustomAttributeFormatException(SerializationInfo, StreamingContext)
Elavult.

Inicializálja az CustomAttributeFormatException osztály új példányát a megadott szerializálási és környezeti információkkal.

CustomAttributeFormatException(String, Exception)

Inicializálja az CustomAttributeFormatException osztály új példányát egy megadott hibaüzenettel és a kivétel okaként szolgáló belső kivételre mutató hivatkozással.

CustomAttributeFormatException()

Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs

Inicializálja az osztály új példányát CustomAttributeFormatException az alapértelmezett tulajdonságokkal.

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

Megjegyzések

Ez a konstruktor inicializál egy üres üzenetsztringet tartalmazó példányt CustomAttributeFormatException , a kiváltó ok kivétele pedig a következőre nullvan állítva: .

Ez a konstruktor a következőképpen állítja be az Exception objektum tulajdonságait:

Ingatlan Érték
InnerException null
Message Az üres sztring ("").

A következőre érvényes:

CustomAttributeFormatException(String)

Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs

Inicializálja az osztály új példányát CustomAttributeFormatException a megadott üzenettel.

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)

Paraméterek

message
String

A kivétel okát jelző üzenet.

Megjegyzések

Ez a konstruktor az alábbiak szerint állítja be a Kivétel objektum tulajdonságait:

Ingatlan Érték
InnerException null

Lásd még

A következőre érvényes:

CustomAttributeFormatException(SerializationInfo, StreamingContext)

Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs

Figyelemfelhívás

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

Inicializálja az CustomAttributeFormatException osztály új példányát a megadott szerializálási és környezeti információkkal.

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

Paraméterek

info
SerializationInfo

Az egyéni attribútum szerializálásához vagy deszerializálásához szükséges adatok.

context
StreamingContext

Az egyéni attribútum forrása és célja.

Attribútumok

A következőre érvényes:

CustomAttributeFormatException(String, Exception)

Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs
Forrás:
CustomAttributeFormatException.cs

Inicializálja az CustomAttributeFormatException osztály új példányát egy megadott hibaüzenettel és a kivétel okaként szolgáló belső kivételre mutató hivatkozással.

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)

Paraméterek

message
String

A kivétel okát magyarázó hibaüzenet.

inner
Exception

Az aktuális kivétel okaként megadott kivétel. Ha a inner paraméter nem null, a rendszer az aktuális kivételt a catch belső kivételt kezelő blokkban emeli ki.

Megjegyzések

Az előző kivétel közvetlen eredményeként keletkező kivételnek tartalmaznia kell a tulajdonság előző kivételére InnerException mutató hivatkozást. A InnerException tulajdonság ugyanazt az értéket adja vissza, amelyet a konstruktornak ad át, vagy null ha a InnerException tulajdonság nem adja meg a belső kivétel értékét a konstruktornak.

Az alábbi táblázat a példány kezdeti tulajdonságértékét CustomAttributeFormatExceptionmutatja be.

Ingatlan Érték
InnerException A inner kivétel.
Message A hibaüzenet sztringje.

Lásd még

A következőre érvényes: