| WikiLinkTryParseAsync(WikiSite, IWikiFamily, String, Int32) 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: WikiClientLibraryAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static Task<WikiLink?> TryParseAsync(
WikiSite? site,
IWikiFamily? family,
string text,
int defaultNamespaceId
)
Public Shared Function TryParseAsync (
site As WikiSite,
family As IWikiFamily,
text As String,
defaultNamespaceId As Integer
) As Task(Of WikiLink)
Dim site As WikiSite
Dim family As IWikiFamily
Dim text As String
Dim defaultNamespaceId As Integer
Dim returnValue As Task(Of WikiLink)
returnValue = WikiLink.TryParseAsync(site,
family, text, defaultNamespaceId)
public:
static Task<WikiLink^>^ TryParseAsync(
WikiSite^ site,
IWikiFamily^ family,
String^ text,
int defaultNamespaceId
)
static member TryParseAsync :
site : WikiSite *
family : IWikiFamily *
text : string *
defaultNamespaceId : int -> Task<WikiLink>
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.
- defaultNamespaceId Int32
- Id of default namespace. See BuiltInNamespaces for a list of possible values.
Return Value
TaskWikiLinkA
WikiLink instance, or
null if the parsing failed.
Exceptions See Also