Message.SourceMachine 屬性

定義

取得發出訊息的電腦。

public:
 property System::String ^ SourceMachine { System::String ^ get(); };
[System.Messaging.MessagingDescription("MsgSourceMachine")]
public string SourceMachine { get; }
[<System.Messaging.MessagingDescription("MsgSourceMachine")>]
member this.SourceMachine : string
Public ReadOnly Property SourceMachine As String

屬性值

傳送訊息之來源電腦的名稱。

屬性

例外狀況

未傳送訊息。 這個屬性只能在從佇列擷取的訊息中讀取。

-或-

篩選訊息佇列以忽略 SourceMachine 屬性。

無法存取電腦資訊或目錄服務。

範例

下列程式代碼範例會顯示訊息 SourceMachine 的 屬性值。

備註

屬性的格式 SourceMachine 不包含前兩個正斜線 (\\) 。 例如, myServer 是有效的 SourceMachine

適用於

另請參閱