你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BinaryContent Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents binary content that can be sent to a cloud service as part of a PipelineRequest.
public abstract class BinaryContent : IDisposable
type BinaryContent = class
interface IDisposable
Public MustInherit Class BinaryContent
Implements IDisposable
- Inheritance
-
BinaryContent
- Implements
Constructors
BinaryContent() |
Methods
Create(BinaryData) |
Creates an instance of BinaryContent that contains the bytes held in the provided BinaryData instance. |
Create(Stream) |
Creates an instance of BinaryContent that contains the bytes held in the provided Stream instance. |
Create<T>(T, ModelReaderWriterOptions) |
Creates an instance of BinaryContent that contains the bytes resulting from writing the value of the provided IPersistableModel<T>. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
TryComputeLength(Int64) |
Attempts to compute the length of the underlying body content, if available. |
WriteTo(Stream, CancellationToken) |
Writes contents of this BinaryContent instance to the provided Stream. |
WriteToAsync(Stream, CancellationToken) |
Writes contents of this BinaryContent instance to the provided Stream. |