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.3
Syntaxpublic bool UpdateLastSavedTimeProperty { get; set; }
Public Property UpdateLastSavedTimeProperty As Boolean
Get
Set
public:
property bool UpdateLastSavedTimeProperty {
bool get ();
void set (bool value);
}
member UpdateLastSavedTimeProperty : bool with get, set
Property Value
Type:
Boolean
ExamplesShows how to update a document time property when you want to save it.
Document doc = new Document(MyDir + "Document.docx");
DateTime documentTimeBeforeSave = doc.BuiltInDocumentProperties.LastSavedTime;
OoxmlSaveOptions saveOptions = new OoxmlSaveOptions
{
UpdateLastSavedTimeProperty = true
};
doc.Save(ArtifactsDir + "OoxmlSaveOptions.UpdatingLastSavedTimeDocument.docx", saveOptions);
See Also