URLHelperGetProtocol Method |
Returns protocol from url.
e.g. http, https, ftp, ...
If no protocol found, null is returned.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax public static string GetProtocol(
string url
)
Parameters
- url
- Type: SystemString
Url that may contain any protocol in valid format
Return Value
Type:
StringSee Also