Message.SenderId 屬性

定義

取得傳送使用者的識別項。Gets the identifier of the sending user.

public:
 property cli::array <System::Byte> ^ SenderId { cli::array <System::Byte> ^ get(); };
[System.Messaging.MessagingDescription("MsgSenderId")]
public byte[] SenderId { get; }
[<System.Messaging.MessagingDescription("MsgSenderId")>]
member this.SenderId : byte[]
Public ReadOnly Property SenderId As Byte()

屬性值

Byte[]

識別傳送者的位元組值陣列。An array of byte values that identifies the sender. 接收佇列管理員會在驗證訊息時使用識別項,以驗證訊息傳送者和傳送者對佇列的存取權限。The receiving Queue Manager uses the identifier when it authenticates the message to verify the sender of the message and the sender's access rights to the queue.

屬性

例外狀況

未傳送訊息。The message has not been sent. 這個屬性只能在從佇列擷取的訊息中讀取。This property can only be read on messages retrieved from a queue.

-或--or- 篩選訊息佇列以忽略 SenderId 屬性。The message queue is filtered to ignore the SenderId property.

備註

如果 AttachSenderId 屬性為,則在 false 屬性中指定的寄件者識別碼 SenderId 不會在傳送時附加到訊息。If the AttachSenderId property is false, the sender identifier specified in the SenderId property is not attached to the message when it is sent. 這表示在訊息佇列中,傳送者傳送訊息至目的端佇列時,不應驗證傳送者。This indicates to Message Queuing that the sender should not be validated when it sends the message to the destination queue. 如果 AttachSenderId 屬性為 trueSenderId 只有在驗證訊息時,屬性值才會是值得信任的。If the AttachSenderId property is true, the SenderId property value is trustworthy only if the message was authenticated. Authenticated 屬性與屬性搭配使用 SenderId ,以驗證寄件者的存取權限。Use the Authenticated property in conjunction with the SenderId property to verify the sender's access rights.

連接器應用程式是一種應用程式,使用連接器伺服器提供訊息佇列與其他佇列系統之間的通訊。A connector application is an application that uses a connector server to provide communication between Message Queuing and other queuing systems. 訊息佇列需要連接器應用程式才能提供寄件者識別。Message Queuing requires connector applications to provide sender identification. ConnectorType透過連接器應用程式傳送訊息時,您必須設定屬性。You must set the ConnectorType property when sending a message through a connector application.

適用於

另請參閱