Share via


CancellableEnumerable Constructor

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 cts As CancellationTokenSource
Dim enumerable As IEnumerable

Dim instance As New CancellableEnumerable(Of T)(cts, enumerable)

Syntax

'Declaration
Public Sub New ( _
    cts As CancellationTokenSource, _
    enumerable As IEnumerable _
)
public CancellableEnumerable (
    CancellationTokenSource cts,
    IEnumerable enumerable
)
public:
CancellableEnumerable (
    CancellationTokenSource^ cts, 
    IEnumerable^ enumerable
)
public CancellableEnumerable (
    CancellationTokenSource cts, 
    IEnumerable enumerable
)
public function CancellableEnumerable (
    cts : CancellationTokenSource, 
    enumerable : IEnumerable
)

Parameters

  • cts
  • enumerable

Platforms

Target Platforms

See Also

Reference

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