Returns the zero-based index of the first occurrence of the specified
NameValueEntry in the NameValueCollection.
Namespace: CodeSmith.CustomPropertiesAssembly: 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 |
Parameters
- entry
- Type: CodeSmith.CustomProperties..::..NameValueEntry
The NameValueEntry object to locate in the NameValueCollection.
Return Value
Type: Int32The 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.