MultipartFileStreamProvider Class

 

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

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.MultipartFileStreamProvider
      System.Net.Http.MultipartFormDataStreamProvider

Syntax

public class MultipartFileStreamProvider : MultipartStreamProvider
public ref class MultipartFileStreamProvider : MultipartStreamProvider
type MultipartFileStreamProvider = 
    class
        inherit MultipartStreamProvider
    end
Public Class MultipartFileStreamProvider
    Inherits MultipartStreamProvider

Constructors

Name Description
System_CAPS_pubmethod MultipartFileStreamProvider(String)

Initializes a new instance of the MultipartFileStreamProvider class.

System_CAPS_pubmethod MultipartFileStreamProvider(String, Int32)

Initializes a new instance of the MultipartFileStreamProvider class.

Properties

Name Description
System_CAPS_protproperty BufferSize

Gets or sets the number of bytes buffered for writes to the file.

System_CAPS_pubproperty Contents

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

System_CAPS_pubproperty FileData

Gets or sets the multipart file data.

System_CAPS_protproperty RootPath

Gets or sets the root path where the content of MIME multipart body parts are written to.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecutePostProcessingAsync()

Executes the post processing operation for this MultipartStreamProvider.(Inherited from MultipartStreamProvider.)

System_CAPS_pubmethod ExecutePostProcessingAsync(CancellationToken)

Executes the post processing operation for this MultipartStreamProvider.(Inherited from MultipartStreamProvider.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetLocalFileName(HttpContentHeaders)

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.

System_CAPS_pubmethod GetStream(HttpContent, HttpContentHeaders)

Gets the stream instance where the message body part is written to.(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