StreamContent 构造函数

定义

创建类的新实例 StreamContent

重载

名称 说明
StreamContent(Stream)

创建类的新实例 StreamContent

StreamContent(Stream, Int32)

创建类的新实例 StreamContent

StreamContent(Stream)

Source:
StreamContent.cs
Source:
StreamContent.cs
Source:
StreamContent.cs
Source:
StreamContent.cs
Source:
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)

Source:
StreamContent.cs
Source:
StreamContent.cs
Source:
StreamContent.cs
Source:
StreamContent.cs
Source:
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 或等于零。

注解

调用时StreamContent,所Dispose()提供Stream对象的对象调用StreamContent.Dispose

适用于