Export (0) Print
Expand All

MultipartFormDataRemoteStreamProvider Class

A MultipartStreamProvider implementation suited for use with HTML file uploads for writing file content to a remote storage Stream. The stream provider looks at the Content-Disposition header field and determines an output remote Stream based on the presence of a filename parameter. If a filename parameter is present in the Content-Disposition header field, then the body part is written to a remote Stream provided by GetRemoteStream(HttpContent, HttpContentHeaders). Otherwise it is written to a MemoryStream.


Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public abstract class MultipartFormDataRemoteStreamProvider : MultipartStreamProvider

The MultipartFormDataRemoteStreamProvider type exposes the following members.

Protected methodMultipartFormDataRemoteStreamProviderInitializes a new instance of the MultipartFormDataRemoteStreamProvider class.

Public propertyContentsGets or sets the contents for this MultipartStreamProvider. (Inherited from MultipartStreamProvider.)
Public propertyFileDataGets a collection of file data passed as part of the multipart form data.
Public propertyFormDataGets a NameValueCollection of form data passed as part of the multipart form data.

Public methodEquals (Inherited from Object.)
Public methodExecutePostProcessingAsync()Read the non-file contents as form data. (Overrides MultipartStreamProvider.ExecutePostProcessingAsync().)
Public methodExecutePostProcessingAsync(CancellationToken)Read the non-file contents as form data. (Overrides MultipartStreamProvider.ExecutePostProcessingAsync(CancellationToken).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetRemoteStreamProvides a RemoteStreamInfo for GetStream(HttpContent, HttpContentHeaders). Override this method to provide a remote stream to which the data should be written.
Public methodGetStream (Overrides MultipartStreamProvider.GetStream(HttpContent, HttpContentHeaders).)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft