StreamContent コンストラクター

定義

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

オーバーロード

StreamContent(Stream)

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

StreamContent(Stream, Int32)

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

StreamContent(Stream)

ソース:
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、 オブジェクトはStreamContent指定されたStreamオブジェクトを呼びDispose()出します。

適用対象

StreamContent(Stream, Int32)

ソース:
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、 オブジェクトはStreamContent指定されたStreamオブジェクトを呼びDispose()出します。

適用対象