Table of Contents

Class MultipartFile

Namespace
Twikit.Api
Assembly
Twikit.dll

multipart/form-data の 1 パート。

public sealed record MultipartFile : IEquatable<MultipartFile>
Inheritance
MultipartFile
Implements
Inherited Members

Constructors

MultipartFile(string, string, byte[], string?)

multipart/form-data の 1 パート。

public MultipartFile(string Name, string FileName, byte[] Content, string? ContentType = null)

Parameters

Name string

フォームのフィールド名。

FileName string

ファイル名。

Content byte[]

内容。

ContentType string

Content-Type(省略時は application/octet-stream)。

Properties

Content

内容。

public byte[] Content { get; init; }

Property Value

byte[]

ContentType

Content-Type(省略時は application/octet-stream)。

public string? ContentType { get; init; }

Property Value

string

FileName

ファイル名。

public string FileName { get; init; }

Property Value

string

Name

フォームのフィールド名。

public string Name { get; init; }

Property Value

string