Auf Englisch lesen Bearbeiten

Freigeben über


DataflowLinkOptions Class

Definition

Provides options used to configure a link between dataflow blocks.

C#
public class DataflowLinkOptions
Inheritance
DataflowLinkOptions

Remarks

Hinweis

The TPL Dataflow Library (the System.Threading.Tasks.Dataflow namespace) is not distributed with .NET. To install the System.Threading.Tasks.Dataflow namespace in Visual Studio, open your project, choose Manage NuGet Packages from the Project menu, and search online for the System.Threading.Tasks.Dataflow package. Alternatively, to install it using the .NET Core CLI, run dotnet add package System.Threading.Tasks.Dataflow.

DataflowLinkOptions is mutable and can be configured through its properties.

When specific configuration options are not set, the following defaults are used:

Options Default
PropagateCompletion False
MaxMessages DataflowBlockOptions.Unbounded (-1)
Append True

Dataflow blocks capture the state of the options at linking. Subsequent changes to the provided DataflowLinkOptions instance should not affect the behavior of a link.

Constructors

Properties

Append

Gets or sets whether the link should be appended to the source's list of links, or whether it should be prepended.

MaxMessages

Gets or sets the maximum number of messages that may be consumed across the link.

PropagateCompletion

Gets or sets whether the linked target will have completion and faulting notification propagated to it automatically.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Produkt Versionen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
UWP 10.0