Uri.hasProtocol
bool hasProtocol(string uri, string protocol)Checks if the protocol of a given valid URI matches protocol.
Parameters
uri | a URI string |
protocol | a protocol string (e.g. "http") |
Returns
true if the protocol matches.
bool hasProtocol(string uri, string protocol)Checks if the protocol of a given valid URI matches protocol.
uri | a URI string |
protocol | a protocol string (e.g. "http") |