Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Interface

IOfficeWorkflowPublicationGuard

Namespace OfficeIMO.Workflows
Assembly OfficeIMO.Workflows
Modifiers abstract

Checks application ownership of a final workflow publication candidate.

Remarks

Called after artifact validation for each candidate, including numbered alternatives. Implementations must support calls from worker threads and honor cancellation. A false result rejects Fail/Replace publication and skips that candidate for Rename. Exceptions fail the operation. This point-in-time check does not lock filesystem identities.

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public abstract ValueTask<Boolean> CanPublishAsync(String path, Boolean isDirectory, CancellationToken cancellationToken) #
Returns: ValueTask<Boolean>

Returns whether a file or complete directory may be published at the given absolute path.

Parameters

path System.String requiredposition: 0
isDirectory System.Boolean requiredposition: 1
cancellationToken System.Threading.CancellationToken requiredposition: 2