CancellableEnumerator 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 ByRefCancellationTokenSource
Dim enumerator As IEnumerator

Dim instance As New CancellableEnumerator(Of T)(cts, enumerator)

Syntax

'Declaration
Public Sub New ( _
    cts As ByRefCancellationTokenSource, _
    enumerator As IEnumerator _
)
public CancellableEnumerator (
    ByRefCancellationTokenSource cts,
    IEnumerator enumerator
)
public:
CancellableEnumerator (
    ByRefCancellationTokenSource^ cts, 
    IEnumerator^ enumerator
)
public CancellableEnumerator (
    ByRefCancellationTokenSource cts, 
    IEnumerator enumerator
)
public function CancellableEnumerator (
    cts : ByRefCancellationTokenSource, 
    enumerator : IEnumerator
)

Parameters

  • cts
  • enumerator

Platforms

Target Platforms

See Also

Reference

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