List.Add Method

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Collections
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim instance As List(Of TKey, TValue)
Dim key As TKey
Dim value As TValue

instance.Add(key, value)

Syntax

'Declaration
Public Sub Add ( _
    key As TKey, _
    value As TValue _
)
public void Add (
    TKey key,
    TValue value
)
public:
void Add (
    TKey key, 
    TValue value
)
public void Add (
    TKey key, 
    TValue value
)
public function Add (
    key : TKey, 
    value : TValue
)

Parameters

  • key
  • value

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

List Generic Class
List Members
Microsoft.OneGet.Utility.Collections Namespace