Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ConfluenceManagedSection

Namespace OfficeIMO.Confluence
Assembly OfficeIMO.Confluence
Modifiers static

Builds page-body text with a named section delimited by OfficeIMO markers.

Inheritance

  • Object
  • ConfluenceManagedSection

Methods

public static ConfluenceManagedSectionResult Apply(String existingBody, String sectionId, String replacement, ConfluenceMissingSectionBehavior missingBehavior = Fail) #
Returns: ConfluenceManagedSectionResult

Replaces a marked section, or appends it when allowed, without contacting Confluence.

Parameters

existingBody System.String requiredposition: 0
Current page-body text; a null value is treated as empty.
sectionId System.String requiredposition: 1
Marker identifier: 1-100 ASCII letters, digits, dots, underscores, or hyphens.
replacement System.String requiredposition: 2
New content between the markers; a null value is treated as empty.
missingBehavior OfficeIMO.Confluence.ConfluenceMissingSectionBehavior = Fail optionalposition: 3
Whether to fail or append when both markers are absent.

Returns

The original and updated bodies, creation flag, and SHA-256 digests.

public static String EndMarker(String sectionId) #
Returns: String

Builds the closing HTML comment marker for a validated section identifier.

Parameters

sectionId System.String requiredposition: 0
public static String StartMarker(String sectionId) #
Returns: String

Builds the opening HTML comment marker for a validated section identifier.

Parameters

sectionId System.String requiredposition: 0