Click or drag to resize

RevisionFetchRevisionsAsync(WikiSite, IEnumerableInt64, IWikiPageQueryProvider, CancellationToken) 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.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public static IAsyncEnumerable<Revision?> FetchRevisionsAsync(
	WikiSite site,
	IEnumerable<long> revisionIds,
	IWikiPageQueryProvider options,
	CancellationToken cancellationToken
)

Parameters

site  WikiSite
The site to fetch revisions from.
revisionIds  IEnumerableInt64
The desired revision Ids.
options  IWikiPageQueryProvider
The options for fetching the revisions.
cancellationToken  CancellationToken
A token used to cancel the operation.

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