Click or drag to resize

WikiLinkTryParseAsync(IWikiFamily, String, Int32) Method

This is preliminary documentation and is subject to change.

Tries to parse a new instance from the a Wikilink expression on the specified Wiki family. This overload resolves the target interwiki site with the interwiki prefixes provided instance, and requires text to have interwiki prefix.

Namespace: WikiClientLibrary
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static Task<WikiLink?> TryParseAsync(
	IWikiFamily family,
	string text,
	int defaultNamespaceId
)

Parameters

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.
defaultNamespaceId  Int32
Id of default namespace. See BuiltInNamespaces for a list of possible values.

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