SaveOptionsUpdateLastSavedTimeProperty Property

Gets or sets a value determining whether the LastSavedTime property is updated before saving.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.10.0


public bool UpdateLastSavedTimeProperty { get; set; }

Property Value

Type: Boolean


Shows how to update a document time property when you want to save it.
Document doc = new Document(MyDir + "Document.docx");

// Get last saved time
DateTime documentTimeBeforeSave = doc.BuiltInDocumentProperties.LastSavedTime;

OoxmlSaveOptions saveOptions = new OoxmlSaveOptions
    UpdateLastSavedTimeProperty = true

doc.Save(ArtifactsDir + "OoxmlSaveOptions.UpdatingLastSavedTimeDocument.docx", saveOptions);

ExpandedSee Also