EmailStorePstWriter
OfficeIMO.Email.Store
Incrementally creates a new dependency-free Unicode PST. Source PST/OST files are never modified.
Inheritance
- object
- EmailStorePstWriter
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Method EmailStorePstWriter.Create
- Method EmailStorePstWriter.Resume
Methods
public void Abandon() #Marks this incomplete writer for cleanup instead of checkpoint retention on disposal.
public string AddFolder(string name, string? parentFolderId = null, string? containerClass = null) #Adds a folder. A null parent places it under EmailStorePstWriter.RootFolderId.
Parameters
- name string
- parentFolderId string? = null
- containerClass string? = null
Returns
stringpublic string AddFolder(string name, EmailStoreSpecialFolderKind specialFolderKind, string? parentFolderId = null, string? containerClass = null) #Adds a folder with a supported standard Outlook default-folder identity.
Parameters
- name string
- specialFolderKind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind
- parentFolderId string? = null
- containerClass string? = null
Returns
stringpublic string AddItem(string folderId, EmailDocument document, bool isAssociated = false, CancellationToken cancellationToken = default) #Writes one message or typed Outlook item into a folder.
Parameters
- folderId string
- document OfficeIMO.Email.EmailDocument
- isAssociated bool = false
- cancellationToken System.Threading.CancellationToken = default
Returns
stringpublic static bool CanAssignSpecialFolderKind(EmailStoreSpecialFolderKind specialFolderKind) #Returns whether a user-created folder can receive this standard EntryID-backed role.
Parameters
- specialFolderKind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind
Returns
boolpublic void Checkpoint() #Flushes all working data and atomically commits a resumable integrity-checked checkpoint.
public void Checkpoint(byte[]? applicationState) #Flushes writer data and atomically commits bounded caller state in the same integrity-checked checkpoint.
Parameters
- applicationState byte[]?
public EmailStorePstWriteReport Complete(CancellationToken cancellationToken = default) #Finalizes indexes and allocation maps, then atomically commits the PST.
Parameters
- cancellationToken System.Threading.CancellationToken = default
Returns
EmailStorePstWriteReportpublic static EmailStorePstWriter Create(string destinationPath, EmailStorePstWriterOptions? options = null) #Creates a writer targeting a new PST path.
Parameters
- destinationPath string
- options OfficeIMO.Email.Store.EmailStorePstWriterOptions? = null
Returns
EmailStorePstWriterpublic static void DeleteCheckpoint(string checkpointPath) #Deletes a checkpoint and its exact writer-owned working files. A missing checkpoint is a no-op.
Parameters
- checkpointPath string
public void Dispose() #Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public static EmailStorePstWriter Resume(string checkpointPath, IProgress<EmailStorePstWriteProgress>? progress = null) #Resumes a writer from its last integrity-checked durable checkpoint.
Parameters
- checkpointPath string
- progress System.IProgress<OfficeIMO.Email.Store.EmailStorePstWriteProgress>? = null
Returns
EmailStorePstWriterpublic static EmailStorePstWriter Resume(string checkpointPath, out byte[]? applicationState, IProgress<EmailStorePstWriteProgress>? progress = null) #Resumes a writer and returns caller state committed atomically with the writer checkpoint.
Parameters
- checkpointPath string
- applicationState byte[]?
- progress System.IProgress<OfficeIMO.Email.Store.EmailStorePstWriteProgress>? = null
Returns
EmailStorePstWriter