ODataMediaTypeFormatter.WriteToStreamAsync Method
Namespace: System.Web.Http.OData.Formatter
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext) | Asynchronously writes an object of the specified type.(Inherited from MediaTypeFormatter.) |
|
WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext, CancellationToken) | (Overrides MediaTypeFormatter.WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext, CancellationToken).) |
See Also
ODataMediaTypeFormatter Class
System.Web.Http.OData.Formatter Namespace
Return to top
ODataMediaTypeFormatter.WriteToStreamAsync Method (Type, Object, Stream, HttpContent, TransportContext, CancellationToken)
Syntax
public override Task WriteToStreamAsync(
Type type,
object value,
Stream writeStream,
HttpContent content,
TransportContext transportContext,
CancellationToken cancellationToken
)
public:
virtual Task^ WriteToStreamAsync(
Type^ type,
Object^ value,
Stream^ writeStream,
HttpContent^ content,
TransportContext^ transportContext,
CancellationToken cancellationToken
) override
override WriteToStreamAsync :
type:Type *
value:Object *
writeStream:Stream *
content:HttpContent *
transportContext:TransportContext *
cancellationToken:CancellationToken -> Task
Public Overrides Function WriteToStreamAsync (
type As Type,
value As Object,
writeStream As Stream,
content As HttpContent,
transportContext As TransportContext,
cancellationToken As CancellationToken
) As Task
Parameters
- type
Type: System.Type
- value
Type: System.Object
- writeStream
Type: System.IO.Stream
- content
Type: System.Net.Http.HttpContent
- transportContext
Type: System.Net.TransportContext
- cancellationToken
Type: System.Threading.CancellationToken
Return Value
Type: System.Threading.Tasks.Task
Return to top