語言

MsmqMessage<T> 類別

定義

此 MsmqMessage<T> 類別封裝了訊息佇列(MSMQ)訊息,透過訊息佇列整合通道,與現有的訊息佇列應用程式之間傳送與接收。

generic <typename T>
public ref class MsmqMessage sealed
[System.ServiceModel.MessageContract(IsWrapped=false)]
public sealed class MsmqMessage<T>
[<System.ServiceModel.MessageContract(IsWrapped=false)>]
type MsmqMessage<'T> = class
Public NotInheritable Class MsmqMessage(Of T)

類型參數

T

代表訊息主體。

繼承
MsmqMessage<T>
屬性

範例

MsmqMessage<string> message = new MsmqMessage<string>("Hello, world");
Dim message As New MsmqMessage(Of String)("Hello, world")

備註

使用該 MsmqMessage<T> 類別來存取訊息佇列訊息的屬性。

建構函式

名稱 Description
MsmqMessage<T>(T)

初始化一個新的類別實例 MsmqMessage<T> ,並以所提供的訊息主體。

屬性

名稱 Description
AcknowledgeType

會取得或設定 AcknowledgeTypes 與此訊息相關的 that。

Acknowledgment

會收到 Acknowledgment 與此訊息相關的 that。

AdministrationQueue

取得或設定 Uri 與此訊息相關的管理佇列。

AppSpecific

取得或設定 Int32 一個值,代表與此訊息相關的任何額外應用特定資訊。

ArrivedTime

會取得或設定 , DateTime 表示訊息何時抵達目的地佇列。

Authenticated

會得到一個布林值,表示訊息是否已認證。

Body

取得或設定訊息的本文。

BodyType

取得或設定一個 Int32 值,表示訊息主體的類型。

CorrelationId

取得或設定包含此訊息相關識別碼的 a String 。

DestinationQueue

取得 Uri 此訊息的目的隊列。

Extension

取得或設定一個陣列 Byte ,包含與此訊息相關的任何額外應用程式定義資訊。

Id

會取得 String 包含該訊息識別碼的 。

Label

取得或設定包含訊息標籤的 。String

MessageType

會收到 MessageType 與此訊息相關的 that。

Priority

會取得或設定 MessagePriority 與此訊息相關的 that。

ResponseQueue

接收或設定 Uri 接收接收應用程式回應訊息的訊息佇列。

SenderId

會得到一個陣列 Byte ,包含發送應用程式的發送者識別碼。

SentTime

會收到 DateTime 一個,表示訊息是由發送應用程式電腦的佇列管理器何時發送的。

TimeToReachQueue

會取得或設定 a TimeSpan ,表示訊息到達目的隊列的最大允許時間。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於