| RevisionFetchRevisionsAsync(WikiSite, IEnumerableInt64) 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
)
Public Shared Function FetchRevisionsAsync (
site As WikiSite,
revisionIds As IEnumerable(Of Long)
) As IAsyncEnumerable(Of Revision)
Dim site As WikiSite
Dim revisionIds As IEnumerable(Of Long)
Dim returnValue As IAsyncEnumerable(Of Revision)
returnValue = Revision.FetchRevisionsAsync(site,
revisionIds)
public:
static IAsyncEnumerable<Revision^>^ FetchRevisionsAsync(
WikiSite^ site,
IEnumerable<long long>^ revisionIds
)
static member FetchRevisionsAsync :
site : WikiSite *
revisionIds : IEnumerable<int64> -> IAsyncEnumerable<Revision>
Parameters
- site WikiSite
- The site to fetch revisions from.
- revisionIds IEnumerableInt64
- The desired revision Ids.
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