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. Otherwise it is written to a MemoryStream.

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

Inheritance Hierarchy

System.Object
  System.Net.Http.MultipartStreamProvider
    System.Net.Http.MultipartFormDataRemoteStreamProvider

Syntax

public abstract class MultipartFormDataRemoteStreamProvider : MultipartStreamProvider
public ref class MultipartFormDataRemoteStreamProvider abstract : MultipartStreamProvider
[<AbstractClass>]
type MultipartFormDataRemoteStreamProvider = 
    class
        inherit MultipartStreamProvider
    end
Public MustInherit Class MultipartFormDataRemoteStreamProvider
    Inherits MultipartStreamProvider

Constructors

Name Description
System_CAPS_protmethod MultipartFormDataRemoteStreamProvider()

Initializes a new instance of the MultipartFormDataRemoteStreamProvider class.

Properties

Name Description
System_CAPS_pubproperty Contents

Gets or sets the contents for this MultipartStreamProvider.(Inherited from MultipartStreamProvider.)

System_CAPS_pubproperty FileData

Gets a collection of file data passed as part of the multipart form data.

System_CAPS_pubproperty FormData

Gets a NameValueCollection of form data passed as part of the multipart form data.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecutePostProcessingAsync()

Read the non-file contents as form data.(Overrides MultipartStreamProvider.ExecutePostProcessingAsync().)

System_CAPS_pubmethod ExecutePostProcessingAsync(CancellationToken)

Read the non-file contents as form data.(Overrides MultipartStreamProvider.ExecutePostProcessingAsync(CancellationToken).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetRemoteStream(HttpContent, HttpContentHeaders)

Provides a RemoteStreamInfo for GetStream. Override this method to provide a remote stream to which the data should be written.

System_CAPS_pubmethod GetStream(HttpContent, HttpContentHeaders)

(Overrides MultipartStreamProvider.GetStream(HttpContent, HttpContentHeaders).)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

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

See Also

System.Net.Http Namespace

Return to top