共用方式為


JoinableTaskContextNode Class

A customizable source of JoinableTaskFactory instances.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Threading.JoinableTaskContextNode

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Public Class JoinableTaskContextNode
public class JoinableTaskContextNode
public ref class JoinableTaskContextNode
type JoinableTaskContextNode =  class end
public class JoinableTaskContextNode

The JoinableTaskContextNode type exposes the following members.

Constructors

  Name Description
Public method JoinableTaskContextNode Initializes a new instance of JoinableTaskContextNode.

Top

Properties

  Name Description
Public property Context Gets the inner wrapped context.
Public property Factory Gets the factory that creates joinable tasks that do not belong to a joinable task collection.
Public property MainThread Gets the main thread that can be shared by tasks created by this context.

Top

Methods

  Name Description
Public method CreateCollection Creates a collection for in-flight joinable tasks.
Protected method CreateDefaultFactory Creates a factory without a JoinableTaskCollection.
Public method CreateFactory Creates a joinable task factory that automatically adds all created tasks to a collection that can be jointly joined.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsMainThreadBlocked Determines whether the main thread is blocked for the caller's completion.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnHangDetected Occurs when a hang involving the main thread is suspected to have occurred.
Protected method RegisterOnHangDetected Registers with the inner JoinableTaskContext to receive hang notifications.
Public method SuppressRelevance Conceals any JoinableTask the caller is associated with until the returned value is disposed.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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.

See Also

Reference

Microsoft.VisualStudio.Threading Namespace