MultipartFormDataContent MultipartFormDataContent MultipartFormDataContent MultipartFormDataContent Class

Definition

Provides a container for content encoded using multipart/form-data MIME type.

public ref class MultipartFormDataContent : System::Net::Http::MultipartContent
public class MultipartFormDataContent : System.Net.Http.MultipartContent
type MultipartFormDataContent = class
    inherit MultipartContent
Public Class MultipartFormDataContent
Inherits MultipartContent
Inheritance
MultipartFormDataContentMultipartFormDataContentMultipartFormDataContentMultipartFormDataContent

Remarks

This type is derived from MultipartContent type. All MultipartFormDataContent does is provide methods to add required Content-Disposition headers to content object added to the collection.

Constructors

MultipartFormDataContent() MultipartFormDataContent() MultipartFormDataContent() MultipartFormDataContent()

Creates a new instance of the MultipartFormDataContent class.

MultipartFormDataContent(String) MultipartFormDataContent(String) MultipartFormDataContent(String) MultipartFormDataContent(String)

Creates a new instance of the MultipartFormDataContent class.

Methods

Add(HttpContent) Add(HttpContent) Add(HttpContent) Add(HttpContent)

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

Add(HttpContent, String) Add(HttpContent, String) Add(HttpContent, String) Add(HttpContent, String)

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

Add(HttpContent, String, String) Add(HttpContent, String, String) Add(HttpContent, String, String) Add(HttpContent, String, String)

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

CopyToAsync(Stream) CopyToAsync(Stream) CopyToAsync(Stream) CopyToAsync(Stream)

Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.

(Inherited from HttpContent)
CopyToAsync(Stream, TransportContext) CopyToAsync(Stream, TransportContext) CopyToAsync(Stream, TransportContext) CopyToAsync(Stream, TransportContext)

Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.

(Inherited from HttpContent)
CreateContentReadStreamAsync() CreateContentReadStreamAsync() CreateContentReadStreamAsync() CreateContentReadStreamAsync() Inherited from MultipartContent
Dispose() Dispose() Dispose() Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpContent.

(Inherited from HttpContent)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the MultipartContent and optionally disposes of the managed resources.

(Inherited from MultipartContent)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection of HttpContent objects that get serialized using the multipart/* content type specification.

(Inherited from MultipartContent)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadIntoBufferAsync() LoadIntoBufferAsync() LoadIntoBufferAsync() LoadIntoBufferAsync()

Serialize the HTTP content to a memory buffer as an asynchronous operation.

(Inherited from HttpContent)
LoadIntoBufferAsync(Int64) LoadIntoBufferAsync(Int64) LoadIntoBufferAsync(Int64) LoadIntoBufferAsync(Int64)

Serialize the HTTP content to a memory buffer as an asynchronous operation.

(Inherited from HttpContent)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadAsByteArrayAsync() ReadAsByteArrayAsync() ReadAsByteArrayAsync() ReadAsByteArrayAsync()

Serialize the HTTP content to a byte array as an asynchronous operation.

(Inherited from HttpContent)
ReadAsStreamAsync() ReadAsStreamAsync() ReadAsStreamAsync() ReadAsStreamAsync()

Serialize the HTTP content and return a stream that represents the content as an asynchronous operation.

(Inherited from HttpContent)
ReadAsStringAsync() ReadAsStringAsync() ReadAsStringAsync() ReadAsStringAsync()

Serialize the HTTP content to a string as an asynchronous operation.

(Inherited from HttpContent)
SerializeToStreamAsync(Stream, TransportContext) SerializeToStreamAsync(Stream, TransportContext) SerializeToStreamAsync(Stream, TransportContext) SerializeToStreamAsync(Stream, TransportContext)

Serialize the multipart HTTP content to a stream as an asynchronous operation.

(Inherited from MultipartContent)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryComputeLength(Int64) TryComputeLength(Int64) TryComputeLength(Int64) TryComputeLength(Int64)

Determines whether the HTTP multipart content has a valid length in bytes.

(Inherited from MultipartContent)

Properties

Headers Headers Headers Headers

Gets the HTTP content headers as defined in RFC 2616.

(Inherited from HttpContent)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

The explicit implementation of the GetEnumerator() method.

(Inherited from MultipartContent)

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to