IConventionElementType.SetJsonValueReaderWriterType(Type, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the type of JsonValueReaderWriter<TValue> to use for elements of the collection.
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
Parameters
- readerWriterType
- Type
A type that inherits from JsonValueReaderWriter<TValue>, or null
to use the reader/writer
from the type mapping.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: