ODataSerializer.WriteObjectAsync 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.
Writes the given object specified by the parameter graph as a whole using the given messageWriter and writeContext.
public virtual System.Threading.Tasks.Task WriteObjectAsync (object graph, Type type, Microsoft.OData.ODataMessageWriter messageWriter, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
abstract member WriteObjectAsync : obj * Type * Microsoft.OData.ODataMessageWriter * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> System.Threading.Tasks.Task
override this.WriteObjectAsync : obj * Type * Microsoft.OData.ODataMessageWriter * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> System.Threading.Tasks.Task
Public Overridable Function WriteObjectAsync (graph As Object, type As Type, messageWriter As ODataMessageWriter, writeContext As ODataSerializerContext) As Task
Parameters
- graph
- Object
The object to be written
- type
- Type
The type of the object to be written.
- messageWriter
- ODataMessageWriter
The ODataMessageWriter to be used for writing.
- writeContext
- ODataSerializerContext