Click or drag to resize
NameValueCollectionExtensionsAddSizeConstraint Method
Adds size constraint's values to the collection.

Namespace: Kentico.Content.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static void AddSizeConstraint(
	this NameValueCollection collection,
	SizeConstraint constraint
)

Parameters

collection
Type: System.Collections.SpecializedNameValueCollection
The name value collection.
constraint
Type: Kentico.Content.Web.MvcSizeConstraint
Size constraint.

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