Click or drag to resize

RevisionFetchRevisionAsync Method

This is preliminary documentation and is subject to change.

Fetch a revision by revid. This overload will also fetch the content of revision.

Namespace: WikiClientLibrary.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static ValueTask<Revision> FetchRevisionAsync(
	WikiSite site,
	long revisionId
)

Parameters

site  WikiSite

[Missing <param name="site"/> documentation for "M:WikiClientLibrary.Pages.Revision.FetchRevisionAsync(WikiClientLibrary.Sites.WikiSite,System.Int64)"]

revisionId  Int64

[Missing <param name="revisionId"/> documentation for "M:WikiClientLibrary.Pages.Revision.FetchRevisionAsync(WikiClientLibrary.Sites.WikiSite,System.Int64)"]

Return Value

ValueTaskRevision
Exceptions
ExceptionCondition
ArgumentExceptionrevisionId is not an existing revision id.
Remarks

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.

See Also