MultipartFormDataStreamProvider Class
Represents an T:System.Net.Http.IMultipartStreamProvider suited for use with HTML file uploads for writing file content to 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 MultipartFormDataStreamProvider : MultipartFileStreamProvider
public ref class MultipartFormDataStreamProvider : MultipartFileStreamProvider
type MultipartFormDataStreamProvider =
class
inherit MultipartFileStreamProvider
end
Public Class MultipartFormDataStreamProvider
Inherits MultipartFileStreamProvider
Constructors
Name | Description | |
---|---|---|
MultipartFormDataStreamProvider(String) | Initializes a new instance of the MultipartFormDataStreamProvider class. |
|
MultipartFormDataStreamProvider(String, Int32) | Initializes a new instance of the MultipartFormDataStreamProvider class. |
Properties
Name | Description | |
---|---|---|
BufferSize | Gets or sets the number of bytes buffered for writes to the file.(Inherited from MultipartFileStreamProvider.) |
|
Contents | Gets or sets the contents for this MultipartStreamProvider.(Inherited from MultipartStreamProvider.) |
|
FileData | Gets or sets the multipart file data.(Inherited from MultipartFileStreamProvider.) |
|
FormData | Gets a NameValueCollection of form data passed as part of the multipart form data. |
|
RootPath | Gets or sets the root path where the content of MIME multipart body parts are written to.(Inherited from MultipartFileStreamProvider.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
ExecutePostProcessingAsync() | Reads the non-file contents as form data.(Overrides MultipartStreamProvider.ExecutePostProcessingAsync().) |
|
ExecutePostProcessingAsync(CancellationToken) | (Overrides MultipartStreamProvider.ExecutePostProcessingAsync(CancellationToken).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
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.(Inherited from MultipartFileStreamProvider.) |
|
GetStream(HttpContent, HttpContentHeaders) | Gets the streaming instance where the message body part is written.(Overrides MultipartFileStreamProvider.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