Click or drag to resize

EntityEditAsync(IEnumerableEntityEditEntry, String, EntityEditOptions) 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.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax
public Task EditAsync(
	IEnumerable<EntityEditEntry> edits,
	string summary,
	EntityEditOptions options
)

Parameters

edits  IEnumerableEntityEditEntry
The changes to be made.
summary  String
The edit summary.
options  EntityEditOptions
Edit options.

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