संपादित करें

इसके माध्यम से साझा किया गया


Message.SourceMachine Property

Definition

Gets the computer from which the message originated.

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

Property Value

The name of the computer from which the message was sent.

Attributes

Exceptions

The message has not been sent. This property can only be read on messages retrieved from a queue.

-or-

The message queue is filtered to ignore the SourceMachine property.

The computer information or directory service could not be accessed.

Examples

The following code example displays the value of a message's SourceMachine property.

Remarks

The format of the SourceMachine property does not include preceding two forward slashes (\\). For example, myServer is a valid SourceMachine.

Applies to

See also