Click or drag to resize

WikiLinkTryParse(WikiSite, String, Int32) Method

This is preliminary documentation and is subject to change.

Tries to parse a new instance using specified Wikilink expression.

Namespace: WikiClientLibrary
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static WikiLink? TryParse(
	WikiSite site,
	string text,
	int defaultNamespaceId
)

Parameters

site  WikiSite
Site instance.
text  String
Wikilink expression, without square brackets.
defaultNamespaceId  Int32
Id of default namespace. See BuiltInNamespaces for a list of possible values.

Return Value

WikiLink
A WikiLink instance, or null if the parsing failed.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither site or text is null.
ArgumentExceptiontext does not contain a valid page title.
See Also