Click or drag to resize

WikiPageEditSectionAsync Method

This is preliminary documentation and is subject to change.

Edits the specified section of the current page, using specified new section content and other options. (MediaWiki 1.16)

Namespace: WikiClientLibrary.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public Task<bool> EditSectionAsync(
	string sectionId,
	WikiPageEditOptions options
)

Parameters

sectionId  String
section identifier. "0" for the top section. Often a positive integer, but can also be non-numeric when the section is inside templates ("T-1").
options  WikiPageEditOptions
page edit options, including new content.

Return Value

TaskBoolean
true if page content has been changed; false otherwise.
Exceptions
ExceptionCondition
InvalidOperationExceptionCannot create actual page in the specified namespace.
OperationConflictExceptionEdit conflict detected.
UnauthorizedOperationExceptionYou have no rights to edit the page.
Remarks
This action will refill Id, Title, ContentModel, LastRevisionId, and invalidate ContentLength, LastRevision, Content, and LastTouched. You should call RefreshAsync again if you're interested in them.
See Also