System.ClientModel.BinaryContent
Represents binary content that can be sent to a cloud service as part of
a PipelineRequest.
Gets the media type of the content.
protected BinaryContent()
Creates an instance of BinaryContent that contains the
bytes held in the provided BinaryData instance.
public static BinaryContent Create<T>(T model, ModelReaderWriterOptions options = null) where T : IPersistableModel<T>
Creates an instance of BinaryContent that contains the
bytes resulting from writing the value of the provided
IPersistableModel<T>.
Creates an instance of BinaryContent that contains the
bytes held in the provided Stream instance.
Creates an instance of BinaryContent that contains the
JSON representation of the provided object.
Creates an instance of BinaryContent that contains the
JSON representation of the provided object using the specified JSON type information.
Creates an instance of BinaryContent that contains the
provided JSON string.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Attempts to compute the length of the underlying body content, if available.
Writes contents of this BinaryContent instance to the
provided Stream.
Writes contents of this BinaryContent instance to the
provided Stream.