Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Interface

IOfficePublicationGuard

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
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.

Methods

public abstract Task<bool> CanPublishAsync(string path, bool isDirectory, CancellationToken cancellationToken) #

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

Parameters

path string required
isDirectory bool required
cancellationToken System.Threading.CancellationToken required

Returns

Task<bool>