URLHelper GetProtocol Method Kentico 8.1 API Reference
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.0.0.0 (8.1.5347.20411)

Parameters

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

Return Value

Type: OnlineString
See Also