IsProtocolRelativeUrl Method
Definition
IsProtocolRelativeUrl(string, Action<ProtocolRelativeUriStringOptions>)
Determines whether the specified value is valid by attempting to construct a URI.
public static bool IsProtocolRelativeUrl(string value, Action<ProtocolRelativeUriStringOptions> setup = null)
Parameters
valuestringsetupAction<ProtocolRelativeUriStringOptions>The ProtocolRelativeUriStringOptions which may be configured.
Returns
- bool
trueif the specifiedvalueis a protocol relative URI; otherwise,false.