Click or drag to resize

SiteInfoMakeArticleUrl(String, String) Method

This is preliminary documentation and is subject to change.

Makes the full URL to the page of specified title.

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public string MakeArticleUrl(
	string title,
	string defaultProtocol
)

Parameters

title  String
The title of the article.
defaultProtocol  String
For wiki sites whose ServerUrl is protocol-relative URL (e.g. //en.wikipedia.org/), specifies the default protocol to use. (e.g. https)

Return Value

String
The full URL of the article.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither title or defaultProtocol is null.
Remarks
For wiki sites with specified-protocol ServerUrl, such as Wikia (which uses http), this overload respects the server-chosen protocol.
See Also