StreamContent クラス
定義
ストリームに基づいて HTTP コンテンツを提供します。Provides HTTP content based on a stream.
public ref class StreamContent : System::Net::Http::HttpContent
public class StreamContent : System.Net.Http.HttpContent
type StreamContent = class
inherit HttpContent
Public Class StreamContent
Inherits HttpContent
- 継承
コンストラクター
StreamContent(Stream) |
StreamContent クラスの新しいインスタンスを作成します。Creates a new instance of the StreamContent class. |
StreamContent(Stream, Int32) |
StreamContent クラスの新しいインスタンスを作成します。Creates a new instance of the StreamContent class. |
プロパティ
Headers |
RFC 2616 で定義されているように HTTP コンテンツ ヘッダーを取得します。Gets the HTTP content headers as defined in RFC 2616. (継承元 HttpContent) |
メソッド
CopyTo(Stream, TransportContext, CancellationToken) |
HTTP コンテンツをバイト ストリームにシリアル化し、 |
CopyToAsync(Stream) |
HTTP コンテンツをバイト ストリームにシリアル化し、 |
CopyToAsync(Stream, CancellationToken) |
HTTP コンテンツをバイト ストリームにシリアル化し、 |
CopyToAsync(Stream, TransportContext) |
HTTP コンテンツをバイト ストリームにシリアル化し、 |
CopyToAsync(Stream, TransportContext, CancellationToken) |
HTTP コンテンツをバイト ストリームにシリアル化し、 |
CreateContentReadStream(CancellationToken) |
HTTP ストリームを読み取り専用ストリームとして返します。Returns the HTTP stream as a read-only stream. |
CreateContentReadStream(CancellationToken) | (継承元 HttpContent) |
CreateContentReadStreamAsync() |
HTTP ストリームを読み取り専用ストリームとして、非同期操作として返します。Returns the HTTP stream as a read-only stream as an asynchronous operation. |
CreateContentReadStreamAsync(CancellationToken) |
非同期操作として HTTP コンテンツをメモリ ストリームにシリアル化します。Serializes the HTTP content to a memory stream as an asynchronous operation. (継承元 HttpContent) |
Dispose() |
HttpContent が使用しているアンマネージド リソースを解放し、マネージド リソースを破棄します。Releases the unmanaged resources and disposes of the managed resources used by the HttpContent. (継承元 HttpContent) |
Dispose(Boolean) |
StreamContent が使用しているアンマネージド リソースを解放します。オプションとして、マネージド リソースを破棄することもできます。Releases the unmanaged resources used by the StreamContent and optionally disposes of the managed resources. |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
LoadIntoBufferAsync() |
非同期操作として HTTP コンテンツをメモリ バッファーにシリアル化します。Serialize the HTTP content to a memory buffer as an asynchronous operation. (継承元 HttpContent) |
LoadIntoBufferAsync(Int64) |
非同期操作として HTTP コンテンツをメモリ バッファーにシリアル化します。Serialize the HTTP content to a memory buffer as an asynchronous operation. (継承元 HttpContent) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ReadAsByteArrayAsync() |
非同期操作として HTTP コンテンツをバイト配列にシリアル化します。Serialize the HTTP content to a byte array as an asynchronous operation. (継承元 HttpContent) |
ReadAsByteArrayAsync(CancellationToken) |
非同期操作として HTTP コンテンツをバイト配列にシリアル化します。Serialize the HTTP content to a byte array as an asynchronous operation. (継承元 HttpContent) |
ReadAsStream() |
HTTP コンテンツをシリアル化し、コンテンツを表すストリームを返します。Serializes the HTTP content and returns a stream that represents the content. (継承元 HttpContent) |
ReadAsStream(CancellationToken) |
HTTP コンテンツをシリアル化し、コンテンツを表すストリームを返します。Serializes the HTTP content and returns a stream that represents the content. (継承元 HttpContent) |
ReadAsStreamAsync() |
HTTP コンテンツをシリアル化し、非同期操作としてコンテンツを表すストリームを返します。Serialize the HTTP content and return a stream that represents the content as an asynchronous operation. (継承元 HttpContent) |
ReadAsStreamAsync(CancellationToken) |
HTTP コンテンツをシリアル化し、非同期操作としてコンテンツを表すストリームを返します。Serialize the HTTP content and return a stream that represents the content as an asynchronous operation. (継承元 HttpContent) |
ReadAsStringAsync() |
非同期操作として HTTP コンテンツを文字列にシリアル化します。Serialize the HTTP content to a string as an asynchronous operation. (継承元 HttpContent) |
ReadAsStringAsync(CancellationToken) |
非同期操作として HTTP コンテンツを文字列にシリアル化します。Serialize the HTTP content to a string as an asynchronous operation. (継承元 HttpContent) |
SerializeToStream(Stream, TransportContext, CancellationToken) |
マルチパート HTTP コンテンツをストリームにシリアル化します。Serializes the multipart HTTP content to a stream. |
SerializeToStream(Stream, TransportContext, CancellationToken) |
派生クラスでオーバーライドされた場合、HTTP コンテンツをストリームにシリアル化します。When overridden in a derived class, serializes the HTTP content to a stream. それ以外の場合は、NotSupportedException をスローします。Otherwise, throws a NotSupportedException. (継承元 HttpContent) |
SerializeToStreamAsync(Stream, TransportContext) |
非同期操作として HTTP コンテンツをストリームにシリアル化します。Serialize the HTTP content to a stream as an asynchronous operation. |
SerializeToStreamAsync(Stream, TransportContext, CancellationToken) |
非同期操作として HTTP コンテンツをストリームにシリアル化します。Serialize the HTTP content to a stream as an asynchronous operation. |
SerializeToStreamAsync(Stream, TransportContext, CancellationToken) |
非同期操作として HTTP コンテンツをストリームにシリアル化します。Serialize the HTTP content to a stream as an asynchronous operation. (継承元 HttpContent) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |
TryComputeLength(Int64) |
ストリーム コンテンツが有効なバイト長であるかどうかを判断します。Determines whether the stream content has a valid length in bytes. |
拡張メソッド
ReadFromJsonAsync(HttpContent, Type, JsonSerializerOptions, CancellationToken) |
非同期操作で HTTP コンテンツを読み取り、JSON としてコンテンツを逆シリアル化した結果の値を返します。Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation. |
ReadFromJsonAsync<T>(HttpContent, JsonSerializerOptions, CancellationToken) |
非同期操作で HTTP コンテンツを読み取り、JSON としてコンテンツを逆シリアル化した結果の値を返します。Reads the HTTP content and returns the value that results from deserializing the content as JSON in an asynchronous operation. |