Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailStorePstWriter

OfficeIMO.Email.Store

Namespace
OfficeIMO.Email.Store
Assembly
OfficeIMO.Email
Source revision
9931e96ab849 with working tree changes
Implements
IDisposable
Modifiers
sealed

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

Methods

public void Abandon() #

Marks this incomplete writer for cleanup instead of checkpoint retention on disposal.

AddFolder 2 overloads
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 required
parentFolderId string? = null optional
containerClass string? = null optional

Returns

string
public 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 required
specialFolderKind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind required
parentFolderId string? = null optional
containerClass string? = null optional

Returns

string
public 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 required
document OfficeIMO.Email.EmailDocument required
isAssociated bool = false optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

string
public static bool CanAssignSpecialFolderKind(EmailStoreSpecialFolderKind specialFolderKind) #

Returns whether a user-created folder can receive this standard EntryID-backed role.

Parameters

specialFolderKind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind required

Returns

bool
Checkpoint 2 overloads
public 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[]? required
public EmailStorePstWriteReport Complete(CancellationToken cancellationToken = default) #

Finalizes indexes and allocation maps, then atomically commits the PST.

Parameters

cancellationToken System.Threading.CancellationToken = default optional
public static EmailStorePstWriter Create(string destinationPath, EmailStorePstWriterOptions? options = null) #

Creates a writer targeting a new PST path.

Parameters

destinationPath string required
options OfficeIMO.Email.Store.EmailStorePstWriterOptions? = null optional
public 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 required
public void Dispose() #

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Resume 2 overloads
public static EmailStorePstWriter Resume(string checkpointPath, IProgress<EmailStorePstWriteProgress>? progress = null) #

Resumes a writer from its last integrity-checked durable checkpoint.

Parameters

checkpointPath string required
progress System.IProgress<OfficeIMO.Email.Store.EmailStorePstWriteProgress>? = null optional
public 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 required
applicationState byte[]? required
progress System.IProgress<OfficeIMO.Email.Store.EmailStorePstWriteProgress>? = null optional

Properties

public string? CheckpointPath { get; } #

Configured durable checkpoint path, or null when resumability is disabled.

public string RootFolderId { get; } #

Identifier of the mandatory Top of Personal Folders container.