Share via


JsonValueReaderWriter.CreateFromType(Type) Méthode

Définition

Crée une JsonValueReaderWriter<TValue> instance du type donné, à l’aide de la Instance propriété pour obtenir le instance singleton si possible.

public static Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter? CreateFromType (Type? readerWriterType);
static member CreateFromType : Type -> Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter
Public Shared Function CreateFromType (readerWriterType As Type) As JsonValueReaderWriter

Paramètres

readerWriterType
Type

Type, qui doit hériter de JsonValueReaderWriter<TValue>.

Retours

Le lecteur/rédacteur instance./

Exceptions

si le type ne représente pas un JsonValueReaderWriter<TValue> qui peut être instancié.

S’applique à