search/mag_sel search/close
Aspose::Words::Saving::SaveOutputParameters Class Reference

This object is returned to the caller after a document is saved and contains additional information that has been generated or calculated during the save operation. The caller can use or ignore this object.

Examples

Shows how to access output parameters of a document's save operation.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
builder->Writeln(u"Hello world!");
// After we save a document, we can access the Internet Media Type (MIME type) of the newly created output document.
SharedPtr<SaveOutputParameters> parameters = doc->Save(ArtifactsDir + u"Document.SaveOutputParameters.doc");
ASSERT_EQ(u"application/msword", parameters->get_ContentType());
// This property changes depending on the save format.
parameters = doc->Save(ArtifactsDir + u"Document.SaveOutputParameters.pdf");
ASSERT_EQ(u"application/pdf", parameters->get_ContentType());

#include <Aspose.Words.Cpp/Saving/SaveOutputParameters.h>

+ Inheritance diagram for Aspose::Words::Saving::SaveOutputParameters:

Public Member Functions

String get_ContentType () const
 Returns the Content-Type string (Internet Media Type) that identifies the type of the saved document. More...
 
virtual const TypeInfoGetType () const override
 
virtual bool Is (const TypeInfo &target) const override
 

Static Public Member Functions

static const TypeInfoType ()
 

Member Function Documentation

◆ get_ContentType()

System::String Aspose::Words::Saving::SaveOutputParameters::get_ContentType ( ) const

Returns the Content-Type string (Internet Media Type) that identifies the type of the saved document.

Examples

Shows how to access output parameters of a document's save operation.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
builder->Writeln(u"Hello world!");
// After we save a document, we can access the Internet Media Type (MIME type) of the newly created output document.
SharedPtr<SaveOutputParameters> parameters = doc->Save(ArtifactsDir + u"Document.SaveOutputParameters.doc");
ASSERT_EQ(u"application/msword", parameters->get_ContentType());
// This property changes depending on the save format.
parameters = doc->Save(ArtifactsDir + u"Document.SaveOutputParameters.pdf");
ASSERT_EQ(u"application/pdf", parameters->get_ContentType());

◆ GetType()

virtual const System::TypeInfo& Aspose::Words::Saving::SaveOutputParameters::GetType ( ) const
overridevirtual

Reimplemented from System::Object.

◆ Is()

virtual bool Aspose::Words::Saving::SaveOutputParameters::Is ( const System::TypeInfo target) const
overridevirtual

Reimplemented from System::Object.

◆ Type()

static const System::TypeInfo& Aspose::Words::Saving::SaveOutputParameters::Type ( )
static