HttpContent-Klasse
A base class representing an HTTP entity body and content headers.
Vererbungshierarchie
System.Object
System.Net.Http.HttpContent
System.Net.Http.ByteArrayContent
System.Net.Http.MultipartContent
System.Net.Http.StreamContent
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
Syntax
'Declaration
Public MustInherit Class HttpContent _
Implements IDisposable
'Usage
Dim instance As HttpContent
public abstract class HttpContent : IDisposable
public ref class HttpContent abstract : IDisposable
[<AbstractClassAttribute>]
type HttpContent =
class
interface IDisposable
end
public abstract class HttpContent implements IDisposable
Der HttpContent-Typ macht folgende Elemente verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
HttpContent | Initializes a new instance of the HttpContent class. |
Zum Anfang
Eigenschaften
Name | Beschreibung | |
---|---|---|
Headers | Gets the HTTP content headers as defined in RFC 2616. |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
CopyToAsync(Stream) | Write the HTTP content to a stream as an asynchronous operation. | |
CopyToAsync(Stream, TransportContext) | Write the HTTP content to a stream as an asynchronous operation. | |
CreateContentReadStreamAsync | ||
Dispose() | Releases the unmanaged resources and disposes of the managed resources used by the HttpContent. | |
Dispose(Boolean) | Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources. | |
Equals | (Geerbt von Object.) | |
Finalize | (Geerbt von Object.) | |
GetHashCode | (Geerbt von Object.) | |
GetType | (Geerbt von Object.) | |
LoadIntoBufferAsync() | Serialize the HTTP content to a memory buffer as an asynchronous operation. | |
LoadIntoBufferAsync(Int64) | ||
MemberwiseClone | (Geerbt von Object.) | |
ReadAsByteArrayAsync | ||
ReadAsStreamAsync | ||
ReadAsStringAsync | ||
SerializeToStreamAsync | Serialize the HTTP content to a stream as an asynchronous operation. | |
ToString | (Geerbt von Object.) | |
TryComputeLength | Determines whether the HTTP content has a valid length in bytes. |
Zum Anfang
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.