| 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.InfrastructuresAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static string MakeAbsoluteUrl(
string baseUrl,
string relativeUrl,
string defaultProtocol
)
Public Shared Function MakeAbsoluteUrl (
baseUrl As String,
relativeUrl As String,
defaultProtocol As String
) As String
Dim baseUrl As String
Dim relativeUrl As String
Dim defaultProtocol As String
Dim returnValue As String
returnValue = MediaWikiHelper.MakeAbsoluteUrl(baseUrl,
relativeUrl, defaultProtocol)
public:
static String^ MakeAbsoluteUrl(
String^ baseUrl,
String^ relativeUrl,
String^ defaultProtocol
)
static member MakeAbsoluteUrl :
baseUrl : string *
relativeUrl : string *
defaultProtocol : string -> string
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
StringThe combined URL with absolute protocol.
Exceptions See Also