Sisk

Class

MultipartObject

Namespace
Sisk.Core.Entity
Assembly
Sisk.Core.dll

Represents an multipart/form-data object.

C#
public sealed class MultipartObject : IEquatable<MultipartObject>

Inheritance #

object ← MultipartObject

Implements #

IEquatable<MultipartObject>

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties #

NameDescription
ContentBytesGets this MultipartObject form data content in bytes.
ContentLengthGets this MultipartObject form data content length in byte count.
ContentTypeGets the Content-Type header value from this multipart-object.
FilenameGets this MultipartObject provided file name. If this object ins’t disposing a file, nothing is returned.
HasContentsGets an boolean indicating if this MultipartObject has contents or not.
HeadersGets this MultipartObject headers.
IsFileGets an boolean indicating if this MultipartObject is a file or not.
NameGets this MultipartObject field name.

Methods #

NameDescription
Equals(object?)
Equals(MultipartObject?)
GetCommonFileFormat()Determines the image format based in the file header for each image content type.
GetHashCode()
ReadContentAsString(Encoding)Reads the content bytes with the given encoder.
ReadContentAsString()Reads the content bytes using the HTTP request content-encoding.

Type to search the documentation and the API reference.