다음을 통해 공유


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.

적용 대상

추가 정보