ActiveXMessageFormatter 클래스

정의

MSMQ ActiveX 구성 요소와 호환되는 형식을 사용하여 메시지 큐 메시지의 본문으로 또는 메시지 큐 메시지의 본문에서 기본 데이터 형식과 다른 개체를 직렬화하거나 역직렬화합니다.

public ref class ActiveXMessageFormatter : ICloneable, System::Messaging::IMessageFormatter
public class ActiveXMessageFormatter : ICloneable, System.Messaging.IMessageFormatter
type ActiveXMessageFormatter = class
    interface IMessageFormatter
    interface ICloneable
Public Class ActiveXMessageFormatter
Implements ICloneable, IMessageFormatter
상속
ActiveXMessageFormatter
구현

설명

ActiveXMessageFormatter MSMQ COM 컨트롤을 사용 하는 애플리케이션과 상호 운용, 메시지 큐 COM 구성 요소를 사용 하 여 전송 된 메시지와 호환 됩니다.

합니다 ActiveXMessageFormatter 대부분의 기본 형식 뿐 아니라 구현 하는 개체를 serialize 할 수는 IPersistStream OLE 인터페이스입니다. 동일한 기본 집합을 deserialize 할 수 있지만 구현 하는 COM 개체 (예를 들어, Visual Basic 6.0을 사용 하 여 만든 개체)를 역직렬화 할 때 작업이 추가로 필요 IPersistStream합니다. 역직렬화 할 개체를 가져와서 첫 번째 개체는.NET Framework 애플리케이션에 메모리에 있어야 합니다.

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

ActiveX serialization이는 사용 하 여 매우 간단한는 ActiveXMessageFormatter MSMQ COM serialization의 매우 빠른 메서드를 제어 합니다.

생성자

ActiveXMessageFormatter()

ActiveXMessageFormatter 클래스의 새 인스턴스를 초기화합니다.

메서드

CanRead(Message)

포맷터에서 메시지 내용을 역직렬화할 수 있는지 여부를 확인합니다.

Clone()

현재 ActiveXMessageFormatter와 동일한 ActiveXMessageFormatter 클래스의 인스턴스를 만듭니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
InitStreamedObject(Object)

IPersistStream을 구현하고 IPersistStreamInit를 사용하여 호출되는 COM 개체를 serialize할 수 있는 유틸리티를 제공합니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

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

지정된 메시지의 내용을 읽고 역직렬화된 메시지가 포함된 개체를 만듭니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
Write(Message, Object)

메시지 본문으로 개체를 serialize합니다.

적용 대상