| 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: WikiClientLibraryAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static WikiLink? TryParse(
WikiSite site,
string text,
int defaultNamespaceId
)
Public Shared Function TryParse (
site As WikiSite,
text As String,
defaultNamespaceId As Integer
) As WikiLink
Dim site As WikiSite
Dim text As String
Dim defaultNamespaceId As Integer
Dim returnValue As WikiLink
returnValue = WikiLink.TryParse(site,
text, defaultNamespaceId)
public:
static WikiLink^ TryParse(
WikiSite^ site,
String^ text,
int defaultNamespaceId
)
static member TryParse :
site : WikiSite *
text : string *
defaultNamespaceId : int -> WikiLink
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
WikiLinkA
WikiLink instance, or
null if the parsing failed.
Exceptions See Also