VssJsonMediaTypeFormatter.WriteToStreamAsync Method (Type, Object, Stream, HttpContent, TransportContext)
Namespace: Microsoft.VisualStudio.Services.WebApi
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Overridable Function WriteToStreamAsync ( _
type As Type, _
value As Object, _
writeStream As Stream, _
content As HttpContent, _
transportContext As TransportContext _
) As Task
public virtual Task WriteToStreamAsync(
Type type,
Object value,
Stream writeStream,
HttpContent content,
TransportContext transportContext
)
public:
virtual Task^ WriteToStreamAsync(
Type^ type,
Object^ value,
Stream^ writeStream,
HttpContent^ content,
TransportContext^ transportContext
)
abstract WriteToStreamAsync :
type:Type *
value:Object *
writeStream:Stream *
content:HttpContent *
transportContext:TransportContext -> Task
override WriteToStreamAsync :
type:Type *
value:Object *
writeStream:Stream *
content:HttpContent *
transportContext:TransportContext -> Task
public function WriteToStreamAsync(
type : Type,
value : Object,
writeStream : Stream,
content : HttpContent,
transportContext : TransportContext
) : 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
Return Value
Type: System.Threading.Tasks.Task
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.