Share via


MultipartFileStreamProvider Class

Represents an IMultipartStreamProvider suited for writing each MIME body parts of the MIME multipart message to a file using a FileStream.

Inheritance Hierarchy

System.Object
  System.Net.Http.MultipartStreamProvider
    System.Net.Http.MultipartFileStreamProvider
      System.Net.Http.MultipartFormDataStreamProvider

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

Syntax

'Declaration
Public Class MultipartFileStreamProvider _
    Inherits MultipartStreamProvider
'Usage
Dim instance As MultipartFileStreamProvider
public class MultipartFileStreamProvider : MultipartStreamProvider
public ref class MultipartFileStreamProvider : public MultipartStreamProvider
type MultipartFileStreamProvider =  
    class
        inherit MultipartStreamProvider
    end
public class MultipartFileStreamProvider extends MultipartStreamProvider

The MultipartFileStreamProvider type exposes the following members.

Constructors

  Name Description
Public method MultipartFileStreamProvider(String) Initializes a new instance of the MultipartFileStreamProvider class.
Public method MultipartFileStreamProvider(String, Int32) Initializes a new instance of the MultipartFileStreamProvider class.

Top

Properties

  Name Description
Protected property BufferSize Gets or sets the number of bytes buffered for writes to the file.
Public property Contents Gets or sets the contents for this MultipartStreamProvider. (Inherited from MultipartStreamProvider.)
Public property FileData Gets or sets the multipart file data.
Protected property RootPath Gets or sets the root path where the content of MIME multipart body parts are written to.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method ExecutePostProcessingAsync Executes the post processing operation for this MultipartStreamProvider. (Inherited from MultipartStreamProvider.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetLocalFileName Gets the name of the local file which will be combined with the root path to create an absolute file name where the contents of the current MIME body part will be stored.
Public method GetStream Gets the stream instance where the message body part is written to. (Overrides MultipartStreamProvider.GetStream(HttpContent, HttpContentHeaders).)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Net.Http Namespace