StreamContent Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy nowe wystąpienie StreamContent klasy.
Przeciążenia
| Nazwa | Opis |
|---|---|
| StreamContent(Stream) |
Tworzy nowe wystąpienie StreamContent klasy. |
| StreamContent(Stream, Int32) |
Tworzy nowe wystąpienie StreamContent klasy. |
StreamContent(Stream)
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
Tworzy nowe wystąpienie StreamContent klasy.
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)
Parametry
- content
- Stream
Zawartość używana do inicjowania elementu StreamContent.
Uwagi
Obiekt StreamContent wywołuje Dispose() podany Stream obiekt, gdy StreamContent.Dispose jest wywoływany.
Dotyczy
StreamContent(Stream, Int32)
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
- Źródło:
- StreamContent.cs
Tworzy nowe wystąpienie StreamContent klasy.
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)
Parametry
- content
- Stream
Zawartość używana do inicjowania elementu StreamContent.
- bufferSize
- Int32
Rozmiar w bajtach buforu dla elementu StreamContent.
Wyjątki
Element content to null.
Wartość bufferSize była mniejsza niż lub równa zero.
Uwagi
Obiekt StreamContent wywołuje Dispose() podany Stream obiekt, gdy StreamContent.Dispose jest wywoływany.