# SerializeFormSections(List<IMultipartFormSection>, byte[])

> Converts a List of IMultipartFormSection objects into a byte array containing raw multipart form data.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Networking](/engine/6000.0/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

```csharp
public static byte[] SerializeFormSections(List<IMultipartFormSection> multipartFormSections, byte[] boundary)
```

### Parameters

**** (\[List\<IMultipartFormSection>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): A List of [IMultipartFormSection](/engine/6000.0/script-reference/unityengine/networking/imultipartformsection.md) objects.**** (\[byte\[]]\(https\://learn.microsoft.com/dotnet/api/system.byte)): A unique boundary string to separate the form sections.

### Returns

| Type                                                           | Description                              |
| -------------------------------------------------------------- | ---------------------------------------- |
| [byte\[\]](https://learn.microsoft.com/dotnet/api/system.byte) | A byte array of raw multipart form data. |

### Remarks

Additional Resources: [UnityWebRequest.GenerateBoundary](/engine/6000.0/script-reference/unityengine/networking/unitywebrequest/generateboundary.md).
