Returns the zero-based index of the first occurrence of the specified NameValueEntry in 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 IndexOf(
	NameValueEntry entry
)
Visual Basic
Public Overridable Function IndexOf ( 
	entry As NameValueEntry
) As Integer

Return Value

Type: Int32
The zero-based index of the first occurrence of entry in the NameValueCollection, if found; otherwise, -1.

Implements

IStringStringList..::..IndexOf(NameValueEntry)

Remarks

Please refer to IndexOf(Object) for details.

IndexOf uses the equality operators defined by String and String to locate the specified entry.

See Also