Compartilhar via


IConventionProperty.SetJsonValueReaderWriterType(Type, Boolean) Método

Definição

Define o tipo de JsonValueReaderWriter<TValue> a ser usado para essa propriedade.

public Type? SetJsonValueReaderWriterType (Type? readerWriterType, bool fromDataAnnotation = false);
abstract member SetJsonValueReaderWriterType : Type * bool -> Type
Public Function SetJsonValueReaderWriterType (readerWriterType As Type, Optional fromDataAnnotation As Boolean = false) As Type

Parâmetros

readerWriterType
Type

Um tipo que herda de JsonValueReaderWriter<TValue>ou null para usar o leitor/gravador do mapeamento de tipo.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O valor configurado.

Aplica-se a