Class MultipartFile
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
Namestringフォームのフィールド名。
FileNamestringファイル名。
Contentbyte[]内容。
ContentTypestringContent-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
FileName
ファイル名。
public string FileName { get; init; }
Property Value
Name
フォームのフィールド名。
public string Name { get; init; }