SingleTaskIdleManager SingleTaskIdleManager SingleTaskIdleManager SingleTaskIdleManager SingleTaskIdleManager Class

Definition

Executes a long-running operation at idle priority on the UI thread. To support yielding frequently, the operation should yield return null as frequently as possible to allow the component manager to schedule other tasks and yield to higher-priority operations.

The task will be executed repeatedly until the SingleTaskIdleManager is disposed.

public ref class SingleTaskIdleManager : Microsoft::VisualStudio::PlatformUI::DisposableObject, Microsoft::VisualStudio::OLE::Interop::IOleComponent
[Windows::Foundation::Metadata::WebHostHidden]
class SingleTaskIdleManager : Microsoft::VisualStudio::PlatformUI::DisposableObject, Microsoft::VisualStudio::OLE::Interop::IOleComponent
public class SingleTaskIdleManager : Microsoft.VisualStudio.PlatformUI.DisposableObject, Microsoft.VisualStudio.OLE.Interop.IOleComponent
type SingleTaskIdleManager = class
    inherit DisposableObject
    interface IOleComponent
Public Class SingleTaskIdleManager
Inherits DisposableObject
Implements IOleComponent
Inheritance
SingleTaskIdleManagerSingleTaskIdleManagerSingleTaskIdleManagerSingleTaskIdleManagerSingleTaskIdleManager
Implements

Constructors

SingleTaskIdleManager(OnIdleHandler) SingleTaskIdleManager(OnIdleHandler) SingleTaskIdleManager(OnIdleHandler) SingleTaskIdleManager(OnIdleHandler) SingleTaskIdleManager(OnIdleHandler)

Initializes a new instance of the SingleTaskIdleManager class.

Methods

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from DisposableObject)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Standard virtual overload for IDisposable pattern.

(Inherited from DisposableObject)
DisposeManagedResources() DisposeManagedResources() DisposeManagedResources() DisposeManagedResources() DisposeManagedResources()

Unregisters the object from being called on Idle. This method is called when the object is disposed.

DisposeNativeResources() DisposeNativeResources() DisposeNativeResources() DisposeNativeResources() DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources.

(Inherited from DisposableObject)
ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed.

(Inherited from DisposableObject)

Explicit Interface Implementations

IOleComponent.FContinueMessageLoop(UInt32, IntPtr, MSG[]) IOleComponent.FContinueMessageLoop(UInt32, IntPtr, MSG[]) IOleComponent.FContinueMessageLoop(UInt32, IntPtr, MSG[]) IOleComponent.FContinueMessageLoop(UInt32, IntPtr, MSG[]) IOleComponent.FContinueMessageLoop(UInt32, IntPtr, MSG[])

Called during each iteration of a message loop.

IOleComponent.FDoIdle(UInt32) IOleComponent.FDoIdle(UInt32) IOleComponent.FDoIdle(UInt32) IOleComponent.FDoIdle(UInt32) IOleComponent.FDoIdle(UInt32)

Gives the component a chance to do idle time tasks.

IOleComponent.FPreTranslateMessage(MSG[]) IOleComponent.FPreTranslateMessage(MSG[]) IOleComponent.FPreTranslateMessage(MSG[]) IOleComponent.FPreTranslateMessage(MSG[]) IOleComponent.FPreTranslateMessage(MSG[])

Processes the message before it is translated and dispatched.

IOleComponent.FQueryTerminate(Int32) IOleComponent.FQueryTerminate(Int32) IOleComponent.FQueryTerminate(Int32) IOleComponent.FQueryTerminate(Int32) IOleComponent.FQueryTerminate(Int32)

Called when the component manager wishes to know if the component is in a state in which it can terminate.

IOleComponent.FReserved1(UInt32, UInt32, IntPtr, IntPtr) IOleComponent.FReserved1(UInt32, UInt32, IntPtr, IntPtr) IOleComponent.FReserved1(UInt32, UInt32, IntPtr, IntPtr) IOleComponent.FReserved1(UInt32, UInt32, IntPtr, IntPtr) IOleComponent.FReserved1(UInt32, UInt32, IntPtr, IntPtr)

Reserved.

IOleComponent.HwndGetWindow(UInt32, UInt32) IOleComponent.HwndGetWindow(UInt32, UInt32) IOleComponent.HwndGetWindow(UInt32, UInt32) IOleComponent.HwndGetWindow(UInt32, UInt32) IOleComponent.HwndGetWindow(UInt32, UInt32)

Gets a window associated with the component.

IOleComponent.OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32) IOleComponent.OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32) IOleComponent.OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32) IOleComponent.OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32) IOleComponent.OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32)

Notifies the component when a new object is being activated.

IOleComponent.OnAppActivate(Int32, UInt32) IOleComponent.OnAppActivate(Int32, UInt32) IOleComponent.OnAppActivate(Int32, UInt32) IOleComponent.OnAppActivate(Int32, UInt32) IOleComponent.OnAppActivate(Int32, UInt32)

Notifies the component when the host application gains or loses activation.

IOleComponent.OnEnterState(UInt32, Int32) IOleComponent.OnEnterState(UInt32, Int32) IOleComponent.OnEnterState(UInt32, Int32) IOleComponent.OnEnterState(UInt32, Int32) IOleComponent.OnEnterState(UInt32, Int32)

Notifies the component when the application enters or exits the specified state.

IOleComponent.OnLoseActivation() IOleComponent.OnLoseActivation() IOleComponent.OnLoseActivation() IOleComponent.OnLoseActivation() IOleComponent.OnLoseActivation()

Notifies the active component that it has lost its active status because the host or another component has become active.

IOleComponent.Terminate() IOleComponent.Terminate() IOleComponent.Terminate() IOleComponent.Terminate() IOleComponent.Terminate()

Terminates the message loop.

Events

Disposing Disposing Disposing Disposing Disposing

Raised when the event is being disposed, that is, while it is still accessible.

(Inherited from DisposableObject)

Properties

IsDisposed IsDisposed IsDisposed IsDisposed IsDisposed

Returns whether the object has been disposed once, which protects against double disposal.

(Inherited from DisposableObject)

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to