| 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.InfrastructuresAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static string MakeAbsoluteProtocol(
string relativeProtocolUrl,
string defaultProtocol
)
Public Shared Function MakeAbsoluteProtocol (
relativeProtocolUrl As String,
defaultProtocol As String
) As String
Dim relativeProtocolUrl As String
Dim defaultProtocol As String
Dim returnValue As String
returnValue = MediaWikiHelper.MakeAbsoluteProtocol(relativeProtocolUrl,
defaultProtocol)
public:
static String^ MakeAbsoluteProtocol(
String^ relativeProtocolUrl,
String^ defaultProtocol
)
static member MakeAbsoluteProtocol :
relativeProtocolUrl : string *
defaultProtocol : string -> string
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
StringThe URL with absolute protocol. If the specified URL is not a relative protocol URL,
it will be returned directly.
Exceptions See Also