Click or drag to resize
QueryCollectionExtensionsToQueryString Method (IQueryCollection, Boolean)
Returns an & separated serialization of IQueryCollection object.

Namespace: CMS.Helpers.Extensions
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static string ToQueryString(
	this IQueryCollection queryCollection,
	bool urlencoded
)

Parameters

queryCollection
Type: CMS.Base.InternalIQueryCollection
The IQueryCollection.
urlencoded
Type: SystemBoolean
Should keys and values in output string be URLEncoded?

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also