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
)
參數
- type
類型:System.Type
- value
類型:System.Object
- writeStream
類型:System.IO.Stream
- content
類型:System.Net.Http.HttpContent
- transportContext
類型:System.Net.TransportContext
傳回值
類型:System.Threading.Tasks.Task
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。