Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ConfluenceManagedSection

OfficeIMO.Confluence

Namespace
OfficeIMO.Confluence
Assembly
OfficeIMO.Confluence
Source revision
ba882f6b0d07 with working tree changes
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) #

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

Parameters

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

Returns

ConfluenceManagedSectionResult The original and updated bodies, creation flag, and SHA-256 digests.
public static string EndMarker(string sectionId) #

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

Parameters

sectionId string required

Returns

string
public static string StartMarker(string sectionId) #

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

Parameters

sectionId string required

Returns

string