StreamContent 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建类的新实例 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的大小(以字节为单位)。
例外
content是null。
小于 bufferSize 或等于零。
注解
调用时StreamContent,所Dispose()提供Stream对象的对象调用StreamContent.Dispose。