Skip to main content

FileContentInfo Constructors

An object defining constructors for the FileContentInfo class.

FileContentInfo(mimeType, length)

Initializes a new instance of the FileContentInfo class with the specified MIME type and length.

Parameters:

mimeType (required): string
The MIME type that identifies the format of the file content.

length (required): long
The size of the file content in bytes.

This constructor creates a new FileContentInfo instance and initializes its read-only properties with the provided values.