MagicCMS Documentation

CheckUrl..::..EnsureProtocol Method

Check if the URL begins with the specified protocol otherwise, it adds.

Namespace:  System
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public static string EnsureProtocol(
	string url,
	CheckUrl..::..Protocol protocol
)

Parameters

url
Type: String
URL of the document.
protocol
Type: System..::..CheckUrl..::..Protocol
The protocol.

Return Value

System.String. Url