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
Geschützte Methode HttpContent Initializes a new instance of the HttpContent class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Headers Gets the HTTP content headers as defined in RFC 2616.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode CopyToAsync(Stream) Write the HTTP content to a stream as an asynchronous operation.
Öffentliche Methode CopyToAsync(Stream, TransportContext) Write the HTTP content to a stream as an asynchronous operation.
Geschützte Methode CreateContentReadStreamAsync
Öffentliche Methode Dispose() Releases the unmanaged resources and disposes of the managed resources used by the HttpContent.
Geschützte Methode Dispose(Boolean) Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources.
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode LoadIntoBufferAsync() Serialize the HTTP content to a memory buffer as an asynchronous operation.
Öffentliche Methode LoadIntoBufferAsync(Int64)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ReadAsByteArrayAsync
Öffentliche Methode ReadAsStreamAsync
Öffentliche Methode ReadAsStringAsync
Geschützte Methode SerializeToStreamAsync Serialize the HTTP content to a stream as an asynchronous operation.
Öffentliche Methode ToString (Geerbt von Object.)
Geschützte Methode 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.

Siehe auch

Verweis

System.Net.Http-Namespace