Click or drag to resize
NameValueCollectionExtensionsToQueryString Method
Returns a query string that represents the collection. Uses the format: ?name1=value1&name2=value2...

Namespace: Kentico.Content.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static string ToQueryString(
	this NameValueCollection collection
)

Parameters

collection
Type: System.Collections.SpecializedNameValueCollection
The name value collection.

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 NameValueCollection. 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