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 | |
---|---|---|
MultipartFormDataRemoteStreamProvider() | Initializes a new instance of the MultipartFormDataRemoteStreamProvider class. |
Properties
Name | Description | |
---|---|---|
Contents | Gets or sets the contents for this MultipartStreamProvider.(Inherited from MultipartStreamProvider.) |
|
FileData | Gets a collection of file data passed as part of the multipart form data. |
|
FormData | Gets a NameValueCollection of form data passed as part of the multipart form data. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
ExecutePostProcessingAsync() | Read the non-file contents as form data.(Overrides MultipartStreamProvider.ExecutePostProcessingAsync().) |
|
ExecutePostProcessingAsync(CancellationToken) | Read the non-file contents as form data.(Overrides MultipartStreamProvider.ExecutePostProcessingAsync(CancellationToken).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetRemoteStream(HttpContent, HttpContentHeaders) | Provides a RemoteStreamInfo for GetStream. Override this method to provide a remote stream to which the data should be written. |
|
GetStream(HttpContent, HttpContentHeaders) | (Overrides MultipartStreamProvider.GetStream(HttpContent, HttpContentHeaders).) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
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
Return to top