Table of Contents

IsProtocolRelativeUrl Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Condition.cs

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

value string

The string used to attempt to construct a Uri.

setup Action<ProtocolRelativeUriStringOptions>

The ProtocolRelativeUriStringOptions which may be configured.

Returns

bool

true if the specified value is a protocol relative URI; otherwise, false.