ContentTypesManager

ContentTypesManager

Resumo geral

ContentTypesManager é uma classe em Aspose.Slides FOSS para C++.

Gerencia a parte [Content_Types].xml, que mapeia os nomes das partes para tipos MIME.

Propriedades

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.
 Português