IMessageFormatter 인터페이스

정의

메시지 큐 메시지 본문에서 개체를 직렬화하거나 역직렬화합니다.

public interface class IMessageFormatter : ICloneable
[System.ComponentModel.TypeConverter(typeof(System.Messaging.Design.MessageFormatterConverter))]
public interface IMessageFormatter : ICloneable
[<System.ComponentModel.TypeConverter(typeof(System.Messaging.Design.MessageFormatterConverter))>]
type IMessageFormatter = interface
    interface ICloneable
Public Interface IMessageFormatter
Implements ICloneable
파생
특성
구현

설명

애플리케이션의 인스턴스를 사용 하 여 큐에 메시지를 보낼 때의 MessageQueue 클래스 포맷터 (해당 되는 모든 클래스의 인스턴스)는 개체를 스트림으로 serialize 하 고 메시지 본문에 삽입 합니다. 사용 하 여 큐에서 읽을 때를 MessageQueue, 포맷터 메시지 데이터를 역직렬화합니다 Body 의 속성을 Message.

BinaryMessageFormatterActiveXMessageFormatter 보다 더 빠른 처리량을 제공 합니다 XmlMessageFormatter합니다. ActiveXMessageFormatter Visual Basic 6.0 메시지 큐 애플리케이션과 상호 운용성을 허용 합니다. XmlMessageFormatter 느슨하게 결합 되어, 즉, 서버 및 클라이언트 버전을 전달 하 고 독립적으로 받는 하는 형식을 관리할 수 있습니다.

메서드

CanRead(Message)

클래스에서 구현될 때 포맷터가 메시지 내용을 역직렬화할 수 있는지 확인합니다.

Clone()

현재 인스턴스의 복사본인 새 개체를 만듭니다.

(다음에서 상속됨 ICloneable)
Read(Message)

클래스에서 구현될 때 지정된 메시지의 내용을 읽고 메시지의 데이터를 포함하는 개체를 만듭니다.

Write(Message, Object)

클래스에서 구현될 때 개체를 메시지 본문으로 serialize합니다.

적용 대상

추가 정보