Sets the String value at the
specified index of the NameValueCollection.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public virtual void SetByIndex( int index, string value ) |
Visual Basic |
---|
Public Overridable Sub SetByIndex ( index As Integer, value As String ) |
Parameters
- index
- Type: System..::..Int32
The zero-based index of the String value to set.
- value
- Type: System..::..String
The String object to store at the specified index of the NameValueCollection. This argument can be a null reference.
Remarks
Please refer to SetByIndex(Int32, Object) for details.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | index is less than zero. -or- index is equal to or greater than Count. |