RequestContent 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 the content sent as part of the Request.
public abstract class RequestContent : IDisposable
type RequestContent = class
interface IDisposable
Public MustInherit Class RequestContent
Implements IDisposable
- Inheritance
-
RequestContent
- Implements
Constructors
RequestContent() |
Methods
Create(BinaryData) |
Creates an instance of RequestContent that wraps a BinaryData. |
Create(Byte[]) |
Creates an instance of RequestContent that wraps an Arrayof Byte. |
Create(Byte[], Int32, Int32) |
Creates an instance of RequestContent that wraps an Arrayof Byte. |
Create(DynamicData) |
Creates an instance of RequestContent that wraps a DynamicData. |
Create(Object) |
Creates an instance of RequestContent that wraps a serialized version of an object. |
Create(Object, JsonPropertyNames, String) |
Creates an instance of RequestContent that wraps a serialized version of an object. |
Create(Object, ObjectSerializer) |
Creates an instance of RequestContent that wraps a serialized version of an object. |
Create(ReadOnlyMemory<Byte>) |
Creates an instance of RequestContent that wraps a Stream. |
Create(ReadOnlySequence<Byte>) |
Creates an instance of RequestContent that wraps a ReadOnlySequence<T>. |
Create(Stream) |
Creates an instance of RequestContent that wraps a Stream. |
Create(String) |
Creates a RequestContent representing the UTF-8 Encoding of the given String/ |
Dispose() |
Frees resources held by the RequestContent object. |
TryComputeLength(Int64) |
Attempts to compute the length of the underlying content, if available. |
WriteTo(Stream, CancellationToken) |
Writes contents of this object to an instance of Stream. |
WriteToAsync(Stream, CancellationToken) |
Writes contents of this object to an instance of Stream. |
Operators
Implicit(BinaryData to RequestContent) |
Creates a RequestContent that wraps a BinaryData. |
Implicit(DynamicData to RequestContent) |
Creates a RequestContent that wraps a DynamicData. |
Implicit(String to RequestContent) |
Creates a RequestContent representing the UTF-8 Encoding of the given String. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應