NameValueCollectionExtensionsAdd Method |
Adds an entry with the specified name and value to the NameValueCollection.
Namespace: Kentico.Content.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax public static void Add(
this NameValueCollection collection,
string name,
Object value
)
Parameters
- collection
- Type: System.Collections.SpecializedNameValueCollection
The name value collection. - name
- Type: SystemString
The key of the entry to add. - value
- Type: SystemObject
The value of the entry to add
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