| RevisionFetchRevisionsAsync(WikiSite, IEnumerableInt64, PageQueryOptions) Method |
This is preliminary documentation and is subject to change.
Fetch revisions by revid sequence.
Namespace: WikiClientLibrary.PagesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static IAsyncEnumerable<Revision?> FetchRevisionsAsync(
WikiSite site,
IEnumerable<long> revisionIds,
PageQueryOptions options
)
Public Shared Function FetchRevisionsAsync (
site As WikiSite,
revisionIds As IEnumerable(Of Long),
options As PageQueryOptions
) As IAsyncEnumerable(Of Revision)
Dim site As WikiSite
Dim revisionIds As IEnumerable(Of Long)
Dim options As PageQueryOptions
Dim returnValue As IAsyncEnumerable(Of Revision)
returnValue = Revision.FetchRevisionsAsync(site,
revisionIds, options)
public:
static IAsyncEnumerable<Revision^>^ FetchRevisionsAsync(
WikiSite^ site,
IEnumerable<long long>^ revisionIds,
PageQueryOptions options
)
static member FetchRevisionsAsync :
site : WikiSite *
revisionIds : IEnumerable<int64> *
options : PageQueryOptions -> IAsyncEnumerable<Revision>
Parameters
- site WikiSite
- The site to fetch revisions from.
- revisionIds IEnumerableInt64
- The desired revision Ids.
- options PageQueryOptions
- The options for fetching the revisions.
Return Value
IAsyncEnumerableRevisionExceptions 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