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.3+0a73c45f0c78941900e328c6c6b819597b665e00
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