MultipartFormDataSection
A helper object for form sections containing generic, non-file data.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
- Implements: IMultipartFormSection
public class MultipartFormDataSection : IMultipartFormSection
Remarks
This helper object is used similarly to the WWWForm method WWWForm.AddBinaryData. It is used to define non-file form sections.
Constructors
Constructor | Description |
|---|---|
| MultipartFormDataSection(System.Byte[]) | Raw data section, unnamed and no |
| MultipartFormDataSection(System.String) | An anonymous raw data section whose payload is derived from a UTF8 string, with a default |
| MultipartFormDataSection(System.String,System.Byte[]) | Raw data section with a section name, no |
| MultipartFormDataSection(System.String,System.Byte[],System.String) | A raw data section with a section name and a |
| MultipartFormDataSection(System.String,System.String) | A names raw data section whose payload is derived from a UTF8 string, with a default |
| MultipartFormDataSection(System.String,System.String,System.String) | A named raw data section whose payload is derived from a UTF8 string, with a |
| MultipartFormDataSection(System.String,System.String,System.Text.Encoding,System.String) | A named raw data section whose payload is derived from a string, with a |
Properties
Property | Description |
|---|---|
| contentType | Returns the value to use in this section's |
| fileName | Returns a string denoting the desired filename of this section on the destination server. |
| sectionData | Returns the raw binary data contained in this section. Will not return null or a zero-length array. |
| sectionName | Returns the name of this section, if any. |