# MultipartFormDataSection

> A helper object for form sections containing generic, non-file data.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Networking](/engine/6000.5/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule
* **Implements:** [IMultipartFormSection](/engine/6000.5/script-reference/unityengine/networking/imultipartformsection.md)

```csharp
public class MultipartFormDataSection : IMultipartFormSection
```

## Remarks

This helper object is used similarly to the [WWWForm](/engine/6000.5/script-reference/unityengine/wwwform.md) method [WWWForm.AddBinaryData](/engine/6000.5/script-reference/unityengine/wwwform/addbinarydata.md). It is used to define non-file form sections.

## Constructors

| Constructor                                                                                                                                                                                                                                   | Description                                                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [MultipartFormDataSection(System.Byte\[\])](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/ctor.md#multipartformdatasection\(byte\))                                                                         | Raw data section, unnamed and no `Content-Type` header.                                                   |
| [MultipartFormDataSection(System.String)](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/ctor.md#multipartformdatasection\(string\))                                                                         | An anonymous raw data section whose payload is derived from a UTF8 string, with a default `Content-Type`. |
| [MultipartFormDataSection(System.String,System.Byte\[\])](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/ctor.md#multipartformdatasection\(string-byte\))                                                    | Raw data section with a section name, no `Content-Type` header.                                           |
| [MultipartFormDataSection(System.String,System.Byte\[\],System.String)](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/ctor.md#multipartformdatasection\(string-byte-string\))                               | A raw data section with a section name and a `Content-Type` header.                                       |
| [MultipartFormDataSection(System.String,System.String)](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/ctor.md#multipartformdatasection\(string-string\))                                                    | A names raw data section whose payload is derived from a UTF8 string, with a default `Content-Type`.      |
| [MultipartFormDataSection(System.String,System.String,System.String)](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/ctor.md#multipartformdatasection\(string-string-string\))                               | A named raw data section whose payload is derived from a UTF8 string, with a `Content-Type` header.       |
| [MultipartFormDataSection(System.String,System.String,System.Text.Encoding,System.String)](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/ctor.md#multipartformdatasection\(string-string-encoding-string\)) | A named raw data section whose payload is derived from a string, with a `Content-Type` header.            |

## Properties

| Property                                                                                                      | Description                                                                                         |
| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [contentType](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/contenttype.md) | Returns the value to use in this section's `Content-Type` header.                                   |
| [fileName](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/filename.md)       | Returns a string denoting the desired filename of this section on the destination server.           |
| [sectionData](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/sectiondata.md) | Returns the raw binary data contained in this section. Will not return null or a zero-length array. |
| [sectionName](/engine/6000.5/script-reference/unityengine/networking/multipartformdatasection/sectionname.md) | Returns the name of this section, if any.                                                           |
