Add()

IDigitalSignatureCollection::Add(System::SharedPtr<IDigitalSignature>) method

Adds the signature at the end of collection.

virtual void Aspose::Slides::IDigitalSignatureCollection::Add(System::SharedPtr<IDigitalSignature> digitalSignature)=0

Arguments

ParameterTypeDescription
digitalSignatureSystem::SharedPtr<IDigitalSignature>Signature to add.

Remarks

auto pres = System::MakeObject<Presentation>();
auto signature = System::MakeObject<DigitalSignature>(u"testsignature1.pfx", u"testpass1");
signature->set_Comments(u"Aspose.Slides digital signing test.");
pres->get_DigitalSignatures()->Add(signature);
pres->Save(u"SomePresentationSigned.pptx", Aspose::Slides::Export::SaveFormat::Pptx);

See Also