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: 10.0.0
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