DataflowMessageHeader DataflowMessageHeader DataflowMessageHeader DataflowMessageHeader Struct

定義

為資料流程區塊之間傳遞的資料屬性提供容器。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)
繼承
DataflowMessageHeaderDataflowMessageHeaderDataflowMessageHeaderDataflowMessageHeader
實作

備註

注意

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.Dataflow) 加以安裝。Alternatively, to install it using the .NET Core CLI, run dotnet add package System.Threading.Tasks.Dataflow.

建構函式

DataflowMessageHeader(Int64) DataflowMessageHeader(Int64) DataflowMessageHeader(Int64) DataflowMessageHeader(Int64)

使用指定的屬性,初始化新的 DataflowMessageHeaderInitializes a new DataflowMessageHeader with the specified attributes.

屬性

Id Id Id Id

取得來源中的訊息 ID。Gets the ID of the message within the source.

IsValid IsValid IsValid IsValid

取得訊息的有效性。Gets the validity of the message.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

依 ID 檢查 Boxed DataflowMessageHeader 執行個體是否相等。Checks boxed DataflowMessageHeader instances for equality by ID.

Equals(DataflowMessageHeader) Equals(DataflowMessageHeader) Equals(DataflowMessageHeader) Equals(DataflowMessageHeader)

不經過 Boxing 處理,依照識別碼檢查兩個 DataflowMessageHeader 執行個體是否相等。Checks two DataflowMessageHeader instances for equality by ID without boxing.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

產生 DataflowMessageHeader 執行個體的雜湊碼。Generates a hash code for the DataflowMessageHeader instance.

運算子

Equality(DataflowMessageHeader, DataflowMessageHeader) Equality(DataflowMessageHeader, DataflowMessageHeader) Equality(DataflowMessageHeader, DataflowMessageHeader) Equality(DataflowMessageHeader, DataflowMessageHeader)

依照識別碼檢查兩個 DataflowMessageHeader 執行個體是否相等。Checks two DataflowMessageHeader instances for equality by ID.

Inequality(DataflowMessageHeader, DataflowMessageHeader) Inequality(DataflowMessageHeader, DataflowMessageHeader) Inequality(DataflowMessageHeader, DataflowMessageHeader) Inequality(DataflowMessageHeader, DataflowMessageHeader)

依照識別碼檢查兩個 DataflowMessageHeader 執行個體是否不相等。Checks two DataflowMessageHeader instances for non-equality by ID.

適用於