Returns the zero-based index of first occurrence of the specified String value 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 IndexOfValue(
	string value
)
Visual Basic
Public Overridable Function IndexOfValue ( 
	value As String
) As Integer

Parameters

value
Type: System..::..String
The String value to locate in the NameValueCollection. This argument can be a null reference.

Return Value

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

Remarks

Please refer to IndexOfValue(Object) for details.

See Also