Click or drag to resize
URLHelperGetProtocol Method
Returns protocol from url. e.g. http, https, ftp, ... If no protocol found, null is returned.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetProtocol(
	string url
)

Parameters

url
Type: SystemString
Url that may contain any protocol in valid format

Return Value

Type: String
See Also