Table of Contents

CreateProtocolRelativeUrl Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/StringFactory.cs

CreateProtocolRelativeUrl(Uri, Action<ProtocolRelativeUriStringOptions>)

Creates a protocol-relative URL string representation of the specified Uri.

public static string CreateProtocolRelativeUrl(Uri value, Action<ProtocolRelativeUriStringOptions> setup = null)

Parameters

value Uri

The URI to convert.

setup Action<ProtocolRelativeUriStringOptions>

The delegate that configures the protocol-relative URL format.

Returns

string

A protocol-relative URL string representation of value.

Exceptions

ArgumentNullException

value is null.

ArgumentException

value is not an absolute URI.