共用方式為


VssJsonMediaTypeFormatter.WriteToStreamAsync 方法 (Type, Object, Stream, HttpContent, TransportContext)

命名空間:  Microsoft.VisualStudio.Services.WebApi
組件:  Microsoft.VisualStudio.Services.WebApi (在 Microsoft.VisualStudio.Services.WebApi.dll 中)

語法

'宣告
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
)

參數

傳回值

類型:System.Threading.Tasks.Task

.NET Framework 安全性

請參閱

參考

VssJsonMediaTypeFormatter 類別

WriteToStreamAsync 多載

Microsoft.VisualStudio.Services.WebApi 命名空間