ExtensionMethodsAddItem Method (IListVariable, String, String) |
Adds an
Variable in the collection. if the variable of the same Name exists already, the value of that variable will be replaced.
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static void AddItem(
this IList<Variable> collection,
string name,
string value
)
<ExtensionAttribute>
Public Shared Sub AddItem (
collection As IList(Of Variable),
name As String,
value As String
)
public:
[ExtensionAttribute]
static void AddItem(
IList<Variable^>^ collection,
String^ name,
String^ value
)
[<ExtensionAttribute>]
static member AddItem :
collection : IList<Variable> *
name : string *
value : string -> unit
Parameters
- collection
- Type: System.Collections.GenericIListVariable
The collection of NameValuePair. - name
- Type: SystemString
The name of the variable - value
- Type: SystemString
The value of the variable
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListVariable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also