Table of Contents

ToQueryString Method

Definition

Namespace
Cuemon.Extensions.Net
Assemblies
Cuemon.Extensions.Net.dll
Source
src/Cuemon.Extensions.Net/NameValueCollectionExtensions.cs

ToQueryString(NameValueCollection, bool)

Converts the specified nvc into its string equivalent.

public static string ToQueryString(this NameValueCollection nvc, bool urlEncode = false)

Parameters

nvc NameValueCollection

The NameValueCollection to extend.

urlEncode bool

Specify true to encode the nvc into a URL-encoded string; otherwise, false. Default is false.

Returns

string

A string equivalent to the values in the nvc.