EntityEdit |
This is preliminary documentation and is subject to change.
Exception | Condition |
---|---|
ArgumentNullException | Either edits is null. |
ArgumentException | options is invalid. |
NotSupportedException | Attempt to set DataType when editing an existing property entity, or force progressive edits when creating a property entity. |
OperationConflictException | Edit conflict detected. |
UnauthorizedOperationException | You have no rights to edit the page. |
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.