Click or drag to resize

MediaWikiHelperMakeAbsoluteUrl(String, String, String) Method

This is preliminary documentation and is subject to change.

Combines a base URL and a relative URL, using the specified protocol for relative protocol URL.

Namespace: WikiClientLibrary.Infrastructures
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static string MakeAbsoluteUrl(
	string baseUrl,
	string relativeUrl,
	string defaultProtocol
)

Parameters

baseUrl  String
The base absolute URL. Can be relative protocol URL.
relativeUrl  String
The relative URL.
defaultProtocol  String
For protocol-relative URL, (e.g. //en.wikipedia.org/) specifies the default protocol to use. (e.g. https:)

Return Value

String
The combined URL with absolute protocol.
Exceptions
ExceptionCondition
ArgumentNullExceptionbaseUrl, relativeUrl, or defaultProtocol is null.
See Also