MultiPartFormContent Class

Definition

Represents multipart/form-data content that can be sent to a cloud service as part of a PipelineRequest.

public sealed class MultiPartFormContent : System.ClientModel.BinaryContent
type MultiPartFormContent = class
    inherit BinaryContent
Public NotInheritable Class MultiPartFormContent
Inherits BinaryContent
Inheritance
MultiPartFormContent

Constructors

Name Description
MultiPartFormContent()

Initializes a new instance of MultiPartFormContent with a randomly generated boundary.

Properties

Name Description
MediaType

Gets the media type of the content.

(Inherited from BinaryContent)

Methods

Name Description
Add(String, BinaryData)

Adds the bytes held in the provided BinaryData as a part of this MultiPartFormContent. The media type from MediaType, if any, is used for the part.

Add(String, Boolean, String)

Adds the provided Boolean as a part of this MultiPartFormContent.

Add(String, Byte, String)

Adds the provided Byte as a part of this MultiPartFormContent.

Add(String, Byte[], String)

Adds the provided byte array as a part of this MultiPartFormContent.

Add(String, Char, String)

Adds the provided Char as a part of this MultiPartFormContent.

Add(String, Decimal, String)

Adds the provided Decimal as a part of this MultiPartFormContent.

Add(String, Double, String)

Adds the provided Double as a part of this MultiPartFormContent.

Add(String, FileBinaryContent)

Adds the provided FileBinaryContent as a part of this MultiPartFormContent and transfers ownership of fileContent to this instance.

Add(String, Int16, String)

Adds the provided Int16 as a part of this MultiPartFormContent.

Add(String, Int32, String)

Adds the provided Int32 as a part of this MultiPartFormContent.

Add(String, Int64, String)

Adds the provided Int64 as a part of this MultiPartFormContent.

Add(String, SByte, String)

Adds the provided SByte as a part of this MultiPartFormContent.

Add(String, Single, String)

Adds the provided Single as a part of this MultiPartFormContent.

Add(String, String, String)

Adds the provided String as a part of this MultiPartFormContent.

Add(String, UInt16, String)

Adds the provided UInt16 as a part of this MultiPartFormContent.

Add(String, UInt32, String)

Adds the provided UInt32 as a part of this MultiPartFormContent.

Add(String, UInt64, String)

Adds the provided UInt64 as a part of this MultiPartFormContent.

Add<T>(String, IPersistableModel<T>, ModelReaderWriterContext, ModelReaderWriterOptions, String)

Adds the provided IPersistableModel<T> as a part of this MultiPartFormContent.

Add<T>(String, IPersistableModel<T>)

Adds the provided IPersistableModel<T> as a part of this MultiPartFormContent using the default wire-format options and an application/json media type.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

TryComputeLength(Int64)

Attempts to compute the length of the underlying body content, if available.

WriteTo(Stream, CancellationToken)

Writes contents of this BinaryContent instance to the provided Stream.

WriteToAsync(Stream, CancellationToken)

Writes contents of this BinaryContent instance to the provided Stream.

Applies to