DataflowMessageHeader 结构

定义

提供用于在数据流块之间传递的数据特性的容器。Provides a container of data attributes for passing between dataflow blocks.

public value class DataflowMessageHeader : IEquatable<System::Threading::Tasks::Dataflow::DataflowMessageHeader>
public struct DataflowMessageHeader : IEquatable<System.Threading.Tasks.Dataflow.DataflowMessageHeader>
type DataflowMessageHeader = struct
Public Structure DataflowMessageHeader
Implements IEquatable(Of DataflowMessageHeader)
继承
DataflowMessageHeader
实现

注解

备注

TPL 数据流库(System.Threading.Tasks.Dataflow 命名空间)不随 .NET 一起分发。The TPL Dataflow Library (the System.Threading.Tasks.Dataflow namespace) is not distributed with .NET. 若要在 Visual Studio 中安装 System.Threading.Tasks.Dataflow 命名空间,请打开项目,选择“项目”菜单中的“管理 NuGet 包”,再在线搜索 System.Threading.Tasks.Dataflow 包。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. 或者,若要使用 .NET Core CLI 进行安装,请运行 dotnet add package System.Threading.Tasks.DataflowAlternatively, to install it using the .NET Core CLI, run dotnet add package System.Threading.Tasks.Dataflow.

构造函数

DataflowMessageHeader(Int64)

初始化指定特性的新 DataflowMessageHeaderInitializes a new DataflowMessageHeader with the specified attributes.

属性

Id

获取源中的消息 ID 。Gets the ID of the message within the source.

IsValid

获取消息的有效性。Gets the validity of the message.

方法

Equals(DataflowMessageHeader)

检查未装箱的两个 DataflowMessageHeader 实例是否相等(按 ID)。Checks two DataflowMessageHeader instances for equality by ID without boxing.

Equals(Object)

检查装箱的 DataflowMessageHeader 实例按 ID 相等。Checks boxed DataflowMessageHeader instances for equality by ID.

GetHashCode()

生成 DataflowMessageHeader 实例的哈希代码。Generates a hash code for the DataflowMessageHeader instance.

运算符

Equality(DataflowMessageHeader, DataflowMessageHeader)

检查两个 DataflowMessageHeader 实例是否相等(按 ID)。Checks two DataflowMessageHeader instances for equality by ID.

Inequality(DataflowMessageHeader, DataflowMessageHeader)

检查两个 DataflowMessageHeader 实例是否不相等(按 ID)。Checks two DataflowMessageHeader instances for non-equality by ID.

适用于