C# 클래스 UnityEngine.Networking.MultipartFormFileSection

A helper object for adding file uploads to multipart forms via the [IMultipartFormSection] API.

상속: IMultipartFormSection
파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled

공개 메소드들

메소드 설명
MultipartFormFileSection ( byte data ) : System

Contains an anonymous file section based on the raw bytes from data, assigns a default Content-Type and file name.

MultipartFormFileSection ( string data, Encoding dataEncoding, string fileName ) : System

An anonymous file section with data drawn from data, as marshaled by dataEncoding. Assigns a specific file name from fileName and a default Content-Type.

MultipartFormFileSection ( string fileName, byte data ) : System

Contains an anonymous file section based on the raw bytes from data with a specific file name. Assigns a default Content-Type.

MultipartFormFileSection ( string name, byte data, string fileName, string contentType ) : System

Contains a named file section based on the raw bytes from data, with a custom Content-Type and file name.

MultipartFormFileSection ( string data, string fileName ) : System

An anonymous file section with data drawn from the UTF8 string data. Assigns a specific file name from fileName and a default Content-Type.

MultipartFormFileSection ( string name, string data, Encoding dataEncoding, string fileName ) : System

Contains a named file section with data drawn from data, as marshaled by dataEncoding. Assigns a specific file name from fileName and a default Content-Type.

비공개 메소드들

메소드 설명
Init ( string name, byte data, string fileName, string contentType ) : void

메소드 상세

MultipartFormFileSection() 공개 메소드

Contains an anonymous file section based on the raw bytes from data, assigns a default Content-Type and file name.

public MultipartFormFileSection ( byte data ) : System
data byte Raw contents of the file to upload.
리턴 System

MultipartFormFileSection() 공개 메소드

An anonymous file section with data drawn from data, as marshaled by dataEncoding. Assigns a specific file name from fileName and a default Content-Type.

public MultipartFormFileSection ( string data, Encoding dataEncoding, string fileName ) : System
data string Contents of the file to upload.
dataEncoding System.Text.Encoding A string encoding.
fileName string Name of the file uploaded by this form section.
리턴 System

MultipartFormFileSection() 공개 메소드

Contains an anonymous file section based on the raw bytes from data with a specific file name. Assigns a default Content-Type.

public MultipartFormFileSection ( string fileName, byte data ) : System
fileName string Name of the file uploaded by this form section.
data byte Raw contents of the file to upload.
리턴 System

MultipartFormFileSection() 공개 메소드

Contains a named file section based on the raw bytes from data, with a custom Content-Type and file name.

public MultipartFormFileSection ( string name, byte data, string fileName, string contentType ) : System
name string Name of this form section.
data byte Raw contents of the file to upload.
fileName string Name of the file uploaded by this form section.
contentType string The value for this section's Content-Type header.
리턴 System

MultipartFormFileSection() 공개 메소드

An anonymous file section with data drawn from the UTF8 string data. Assigns a specific file name from fileName and a default Content-Type.

public MultipartFormFileSection ( string data, string fileName ) : System
data string Contents of the file to upload.
fileName string Name of the file uploaded by this form section.
리턴 System

MultipartFormFileSection() 공개 메소드

Contains a named file section with data drawn from data, as marshaled by dataEncoding. Assigns a specific file name from fileName and a default Content-Type.

public MultipartFormFileSection ( string name, string data, Encoding dataEncoding, string fileName ) : System
name string Name of this form section.
data string Contents of the file to upload.
dataEncoding System.Text.Encoding A string encoding.
fileName string Name of the file uploaded by this form section.
리턴 System