你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PipelineResponse.Content Property

Definition

Gets the contents of the HTTP response.

public abstract BinaryData Content { get; }
member this.Content : BinaryData
Public MustOverride ReadOnly Property Content As BinaryData

Property Value

Exceptions

Thrown if the response is not buffered.

Remarks

Content holds the in-memory contents of the HTTP response when BufferResponse is true on the message sent via Send(PipelineMessage). If this PipelineResponse instance was obtained from the return value of a client's service method, please refer to the documentation for the service method to understand whether this property can be accessed without throwing an exception. If this instance is accessed from a PipelinePolicy, please check the value of BufferResponse to determine whether to obtain the response content from Content or ContentStream.

Applies to