Click or drag to resize

NVCollectionExtsAddField Method (NameValueCollection, String, Object, String)

Add a new item to the collection as if this is a IField being added by a IMapper.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void AddField(
	this NameValueCollection nv,
	string key,
	Object val,
	string caption
)

Parameters

nv
Type: System.Collections.SpecializedNameValueCollection
The collection to which to add the item.
key
Type: SystemString
The field key of the item to add.
val
Type: SystemObject
The field value for the item.
caption
Type: SystemString
The field caption.

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