Click or drag to resize

WikiPageEditAsync 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.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax
public Task<bool> EditAsync(
	WikiPageEditOptions options
)

Parameters

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