JsonUnmappedMemberHandlingAttribute Classe

Definizione

Se posizionato su un tipo, determina la JsonUnmappedMemberHandling configurazione per il tipo specifico, sostituendo l'impostazione globale UnmappedMemberHandling .

public ref class JsonUnmappedMemberHandlingAttribute : System::Text::Json::Serialization::JsonAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public class JsonUnmappedMemberHandlingAttribute : System.Text.Json.Serialization.JsonAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)>]
type JsonUnmappedMemberHandlingAttribute = class
    inherit JsonAttribute
Public Class JsonUnmappedMemberHandlingAttribute
Inherits JsonAttribute
Ereditarietà
JsonUnmappedMemberHandlingAttribute
Attributi

Costruttori

Nome Descrizione
JsonUnmappedMemberHandlingAttribute(JsonUnmappedMemberHandling)

Inizializza una nuova istanza di JsonUnmappedMemberHandlingAttribute.

Proprietà

Nome Descrizione
TypeId

Se implementato in una classe derivata, ottiene un identificatore univoco per questo Attribute.

(Ereditato da Attribute)
UnmappedMemberHandling

Ottiene l'impostazione di gestione dei membri non mappata per l'attributo .

Metodi

Nome Descrizione
Equals(Object)

Restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.

(Ereditato da Attribute)
GetHashCode()

Restituisce il codice hash per questa istanza.

(Ereditato da Attribute)
GetType()

Ottiene il Type dell'istanza corrente.

(Ereditato da Object)
IsDefaultAttribute()

Quando sottoposto a override in una classe derivata, indica se il valore di questa istanza è il valore predefinito per la classe derivata.

(Ereditato da Attribute)
Match(Object)

Quando sottoposto a override in una classe derivata, restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.

(Ereditato da Attribute)
MemberwiseClone()

Crea una copia superficiale del Objectcorrente.

(Ereditato da Object)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Si applica a