Click or drag to resize

WikiPageAddSectionAsync Method

This is preliminary documentation and is subject to change.

Edits the main content of the current page, using specified new page 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> AddSectionAsync(
	string sectionTitle,
	WikiPageEditOptions options
)

Parameters

sectionTitle  String
title for the new section. (MediaWiki 1.19+)
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