Click or drag to resize

RevisionFetchRevisionsAsync(WikiSite, IEnumerableInt64) Method

This is preliminary documentation and is subject to change.

Fetch revisions by revid sequence.

Namespace: WikiClientLibrary.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static IAsyncEnumerable<Revision?> FetchRevisionsAsync(
	WikiSite site,
	IEnumerable<long> revisionIds
)

Parameters

site  WikiSite
The site to fetch revisions from.
revisionIds  IEnumerableInt64
The desired revision Ids.

Return Value

IAsyncEnumerableRevision
Exceptions
ExceptionCondition
ArgumentNullExceptionEither site or revisionIds is null.
ArgumentExceptionrevisionIds contains an existing revision id.
Remarks

The returned sequence will have the SAME order as specified in revisionIds.

The WikiPage of returned Revision will be a valid object. However, its LastRevision and Content will corresponds to the latest revision fetched in this invocation, and pages with the same title share the same reference.

If there's invalid revision id in revisionIds, an ArgumentException will be thrown while enumerating.

See Also