Edit

Share via


JsonPropertyInfo Class

Definition

Provides JSON serialization-related metadata about a property or field.

public ref class JsonPropertyInfo abstract
public abstract class JsonPropertyInfo
type JsonPropertyInfo = class
Public MustInherit Class JsonPropertyInfo
Inheritance
JsonPropertyInfo

Properties

AssociatedParameter

Gets the constructor parameter associated with the current property.

AttributeProvider

Gets or sets the custom attribute provider for the current property.

CustomConverter

Gets or sets a custom converter override for the current property.

DeclaringType

Gets the declaring type of the property.

Get

Gets or sets a getter delegate for the property.

IsExtensionData

Gets or sets a value that indicates whether the current property is a special extension data property.

IsGetNullable

Gets or sets a value indicating whether the return type of the getter is annotated as nullable.

IsRequired

Gets or sets a value that indicates whether the current property is required for deserialization to be successful.

IsSetNullable

Gets or sets a value indicating whether the input type of the setter is annotated as nullable.

Name

Gets or sets the JSON property name used when serializing the property.

NumberHandling

Gets or sets the JsonNumberHandling applied to the current property.

ObjectCreationHandling

Gets or sets a value indicating if the property or field should be replaced or populated during deserialization.

Options

Gets the JsonSerializerOptions value associated with the current contract instance.

Order

Gets or sets the serialization order for the current property.

PropertyType

Gets the type of the current property.

Set

Gets or sets a setter delegate for the property.

ShouldSerialize

Gets or sets a predicate that determines whether the current property value should be serialized.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to