Adds a NameValueEntry to the end of the NameValueCollection.

Namespace: CodeSmith.CustomProperties
Assembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public virtual int Add(
	NameValueEntry entry
)
Visual Basic
Public Overridable Function Add ( 
	entry As NameValueEntry
) As Integer

Parameters

entry
Type: CodeSmith.CustomProperties..::..NameValueEntry
The NameValueEntry object to be added to the end of the NameValueCollection.

Return Value

Type: Int32
The NameValueCollection index at which the entry has been added.

Implements

IStringStringList..::..Add(NameValueEntry)

Remarks

Please refer to Add(Object) for details.

Exceptions

ExceptionCondition
System..::..NotSupportedException

The NameValueCollection is read-only.

-or-

The NameValueCollection has a fixed size.

See Also