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