ContentTypesManager

ContentTypesManager

Übersicht über die

ContentTypesManager ist eine Klasse in Aspose.Slides FOSS für C++.

Verwaltet das [Content_Types].xml-Teil, welches Teillänge zu MIME-Typen übersetzt.

Eigenschaften

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.
 Deutsch