Share via


OnMainThread Delegate

This element is introduced in Windows PowerShell 5.0.

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

Usage

'Usage
Dim instance As New OnMainThread(AddressOf HandlerMethod)

Syntax

'Declaration
Public Delegate Function OnMainThread ( _
    onMainThreadDelegate As Func(Of Boolean) _
) As Boolean
public delegate bool OnMainThread (
    Func<bool> onMainThreadDelegate
)
public delegate bool OnMainThread (
    Func<bool>^ onMainThreadDelegate
)
/** @delegate */
public delegate boolean OnMainThread (
    Func<boolean> onMainThreadDelegate
)

Parameters

  • onMainThreadDelegate

Return Value

Returns Boolean.

Platforms

Target Platforms

See Also

Reference

Microsoft.OneGet.Utility.PowerShell Namespace