Click or drag to resize

WikiaSiteWikiaApiExtensionsFetchRelatedPagesAsync(WikiaSite, Int64, Int32) Method

This is preliminary documentation and is subject to change.

Asynchronously fetches the specified page's related pages.

Namespace: WikiClientLibrary.Wikia.WikiaApi
Assembly: WikiClientLibrary.Wikia (in WikiClientLibrary.Wikia.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static Task<IList<RelatedPageItem>> FetchRelatedPagesAsync(
	this WikiaSite site,
	long pageId,
	int maxCount
)

Parameters

site  WikiaSite
The site to issue the request.
pageId  Int64
ID of the page to find the related ones.
maxCount  Int32
Maximum count of the returned items.

Return Value

TaskIListRelatedPageItem

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WikiaSite. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionsite is null.
ArgumentOutOfRangeExceptionpageId is less than or equals to 0.
NotFoundApiExceptionRelated Pages extension is not available.
See Also