| WikiLinkParseAsync(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 family.
This overload resolves the target interwiki site with the interwiki prefixes provided
instance, and requires text to have interwiki prefix.
Namespace: WikiClientLibraryAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static Task<WikiLink> ParseAsync(
IWikiFamily family,
string text
)
Public Shared Function ParseAsync (
family As IWikiFamily,
text As String
) As Task(Of WikiLink)
Dim family As IWikiFamily
Dim text As String
Dim returnValue As Task(Of WikiLink)
returnValue = WikiLink.ParseAsync(family,
text)
public:
static Task<WikiLink^>^ ParseAsync(
IWikiFamily^ family,
String^ text
)
static member ParseAsync :
family : IWikiFamily *
text : string -> Task<WikiLink>
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.
Return Value
TaskWikiLinkThe parsed
WikiLink instance.
Exceptions Exception | Condition |
---|
ArgumentNullException |
Both site and family is null.
-- or --
text is null.
|
ArgumentException | text does not contain a valid page title.
-- or --
site is null, but text does not contain any interwiki prefix.
|
See Also