ContentTypesManager

Pengamatan umum

ContentTypesManager adalah kelas dalam Aspose.Slides FOSS untuk C++.

Mengelola bagian [Content_Types].xml, yang memetakan nama bagian ke tipe MIME.

Sifat-sifatnya

NameTypeAccessDescription
kPartNamestd::string_viewRead/WriteGets or sets the k part name.
SignatureDescription
ContentTypesManager(package: OpcPackage)
add_default(extension: std::string_view, content_type: std::string_view)Add or update a default content type for the given file extension.
add_override(part_name: std::string_view, content_type: std::string_view)Add or update an override for the given part name.
remove_override(part_name: std::string_view)Remove an override for the given part name.
get_content_type(part_name: std::string_view)std::stringGet the content type for a part, or empty string if not found.
save()Persist the content types back to the package.
 Bahasa Indonesia