Click or drag to resize

WikiLinkTryParseAsync(WikiSite, IWikiFamily, String) Method

This is preliminary documentation and is subject to change.

Parses a new instance from the a Wikilink expression on the specified Wiki site and Wiki family. This overload also resolves the target interwiki site with the interwiki prefixes provided instance.

Namespace: WikiClientLibrary
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public static Task<WikiLink?> TryParseAsync(
	WikiSite? site,
	IWikiFamily? family,
	string text
)

Parameters

site  WikiSite
Site instance.
family  IWikiFamily
Wiki family. You need to provide this argument if you want to parse into interwiki links.
text  String
Wikilink expression, without square brackets.

Return Value

TaskWikiLink
A WikiLink instance, or null if the parsing failed.
Exceptions
ExceptionCondition
ArgumentNullException Both site and family is null. -- or -- text is null.
See Also