Click or drag to resize

MediaWikiHelperMakeAbsoluteProtocol Method

This is preliminary documentation and is subject to change.

Converts the specified relative protocol URL (starting with //) to absolute protocol URL.

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

Parameters

relativeProtocolUrl  String
The URL to be converted.
defaultProtocol  String
For protocol-relative URL,(e.g. //en.wikipedia.org/), specifies the default protocol to use. (e.g. https)

Return Value

String
The URL with absolute protocol. If the specified URL is not a relative protocol URL, it will be returned directly.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither relativeProtocolUrl or defaultProtocol is null.
See Also