ContentTypesManager

ContentTypesManager

المعلومات العامة

ContentTypesManager هي فئة في Aspose.Slides FOSS لـ C++.

يدير جزء [Content_Types].xml، الذي يقوم بتحديد أسماء الأجزاء إلى أنواع MIME.

خصائص

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.
 العربية