Class
ConfluenceManagedSection
OfficeIMO.Confluence
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
- Current page-body text; a null value is treated as empty.
- sectionId string
- Marker identifier: 1-100 ASCII letters, digits, dots, underscores, or hyphens.
- replacement string
- New content between the markers; a null value is treated as empty.
- missingBehavior OfficeIMO.Confluence.ConfluenceMissingSectionBehavior = Fail
- 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
Returns
stringpublic static string StartMarker(string sectionId) #Builds the opening HTML comment marker for a validated section identifier.
Parameters
- sectionId string
Returns
string