StreamContent コンストラクター

定義

StreamContent クラスの新しいインスタンスを作成します。

オーバーロード

名前 説明
StreamContent(Stream)

StreamContent クラスの新しいインスタンスを作成します。

StreamContent(Stream, Int32)

StreamContent クラスの新しいインスタンスを作成します。

StreamContent(Stream)

ソース:
StreamContent.cs
ソース:
StreamContent.cs
ソース:
StreamContent.cs
ソース:
StreamContent.cs
ソース:
StreamContent.cs

StreamContent クラスの新しいインスタンスを作成します。

public:
 StreamContent(System::IO::Stream ^ content);
public StreamContent(System.IO.Stream content);
new System.Net.Http.StreamContent : System.IO.Stream -> System.Net.Http.StreamContent
Public Sub New (content As Stream)

パラメーター

content
Stream

StreamContentの初期化に使用されるコンテンツ。

注釈

StreamContent オブジェクトは、Dispose()が呼び出されたときに、指定されたStream オブジェクトに対してStreamContent.Disposeを呼び出します。

適用対象

StreamContent(Stream, Int32)

ソース:
StreamContent.cs
ソース:
StreamContent.cs
ソース:
StreamContent.cs
ソース:
StreamContent.cs
ソース:
StreamContent.cs

StreamContent クラスの新しいインスタンスを作成します。

public:
 StreamContent(System::IO::Stream ^ content, int bufferSize);
public StreamContent(System.IO.Stream content, int bufferSize);
new System.Net.Http.StreamContent : System.IO.Stream * int -> System.Net.Http.StreamContent
Public Sub New (content As Stream, bufferSize As Integer)

パラメーター

content
Stream

StreamContentの初期化に使用されるコンテンツ。

bufferSize
Int32

StreamContentのバッファーのサイズ (バイト単位)。

例外

contentnullされました。

bufferSizeが 0 以下でした。

注釈

StreamContent オブジェクトは、Dispose()が呼び出されたときに、指定されたStream オブジェクトに対してStreamContent.Disposeを呼び出します。

適用対象