Click or drag to resize

EntityEditAsync(IEnumerableEntityEditEntry, String) Method

This is preliminary documentation and is subject to change.

Makes the specified changes to the current entity on the Wikibase site.

Namespace: WikiClientLibrary.Wikibase
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public Task EditAsync(
	IEnumerable<EntityEditEntry> edits,
	string summary
)

Parameters

edits  IEnumerableEntityEditEntry
The changes to be made.
summary  String
The edit summary.

Return Value

Task
Exceptions
ExceptionCondition
ArgumentNullExceptionEither edits is null.
ArgumentExceptionoptions is invalid.
NotSupportedExceptionAttempt to set DataType when editing an existing property entity, or force progressive edits when creating a property entity.
OperationConflictExceptionEdit conflict detected.
UnauthorizedOperationExceptionYou have no rights to edit the page.
Remarks

After the operation, the entity may be automatically refreshed, which means all the Claim instances that used to belong to this claim will be detached, and perhaps replicates will take the place. If the edit operation is bulk edit, this is effectively a refresh operation with FetchAllProperties flag, except that some properties in the FetchInfo category are just invalidated due to insufficient data contained in the MW API. (e.g. PageId) As for the properties that are affected by the edit operation, see the "remarks" section of the properties, respectively.

If the edit operation is progressive edit, only the LastRevisionId is valid, after the edit operation.

For more information about bulk edit and progressive edit, see the "remarks" section of EntityEditOptions.

If you need more information about the entity after the edit, consider invoking RefreshAsync again.

See Also