Message 클래스

정의

메시지 큐 메시지를 정의하는 데 필요한 속성의 액세스 권한을 제공합니다.

public ref class Message : System::ComponentModel::Component
public class Message : System.ComponentModel.Component
type Message = class
    inherit Component
Public Class Message
Inherits Component
상속

예제

다음 코드 예제에서는 사용 하 여 메시지 본문을 서식 지정 하는 방법을 보여 줍니다 BinaryMessageFormatter합니다.

#using <system.dll>
#using <system.messaging.dll>
#using <system.drawing.dll>

using namespace System;
using namespace System::Messaging;
using namespace System::Drawing;
using namespace System::IO;

/// <summary>
/// Provides a container class for the example.
/// </summary>
ref class MyNewQueue
{
public:

   //*************************************************
   // Creates a new queue.
   //*************************************************
   static void CreateQueue( String^ queuePath )
   {
      try
      {
         if (  !MessageQueue::Exists( queuePath ) )
         {
            MessageQueue::Create( queuePath );
         }
         else
         {
            Console::WriteLine(  "{0} already exists.", queuePath );
         }
      }
      catch ( MessageQueueException^ e ) 
      {
         Console::WriteLine( e->Message );
      }

   }


   //*************************************************
   // Sends an image to a queue, using the BinaryMessageFormatter.
   //*************************************************
   void SendMessage()
   {
      try
      {
         
         // Create a new bitmap.
         // The file must be in the \bin\debug or \bin\retail folder, or
         // you must give a full path to its location.
         Image^ myImage = Bitmap::FromFile( "SentImage::bmp" );
         
         // Connect to a queue on the local computer.
         MessageQueue^ myQueue = gcnew MessageQueue( ".\\myQueue" );
         Message^ myMessage = gcnew Message( myImage,gcnew BinaryMessageFormatter );
         
         // Send the image to the queue.
         myQueue->Send( myMessage );
      }
      catch ( ArgumentException^ e ) 
      {
         Console::WriteLine( e->Message );
      }

      return;
   }


   //*************************************************
   // Receives a message containing an image.
   //*************************************************
   void ReceiveMessage()
   {
      try
      {
         
         // Connect to the a queue on the local computer.
         MessageQueue^ myQueue = gcnew MessageQueue( ".\\myQueue" );
         
         // Set the formatter to indicate body contains an Order.
         myQueue->Formatter = gcnew BinaryMessageFormatter;
         
         // Receive and format the message. 
         Message^ myMessage = myQueue->Receive();
         Bitmap^ myImage = static_cast<Bitmap^>(myMessage->Body);
         
         // This will be saved in the \bin\debug or \bin\retail folder.
         myImage->Save( "ReceivedImage::bmp", System::Drawing::Imaging::ImageFormat::Bmp );
      }
      catch ( MessageQueueException^ ) 
      {
         
         // Handle Message Queuing exceptions.
      }
      // Handle invalid serialization format.
      catch ( InvalidOperationException^ e ) 
      {
         Console::WriteLine( e->Message );
      }
      catch ( IOException^ e ) 
      {
         
         // Handle file access exceptions.
      }

      
      // Catch other exceptions as necessary.
      return;
   }

};


//*************************************************
// Provides an entry point into the application.
//         
// This example sends and receives a message from
// a queue.
//*************************************************
int main()
{
   
   // Create a new instance of the class.
   MyNewQueue^ myNewQueue = gcnew MyNewQueue;
   
   // Create a queue on the local computer.
   MyNewQueue::CreateQueue( ".\\myQueue" );
   
   // Send a message to a queue.
   myNewQueue->SendMessage();
   
   // Receive a message from a queue.
   myNewQueue->ReceiveMessage();
   return 0;
}
using System;
using System.Messaging;
using System.Drawing;
using System.IO;

namespace MyProject
{

    /// <summary>
    /// Provides a container class for the example.
    /// </summary>
    public class MyNewQueue
    {

        //**************************************************
        // Provides an entry point into the application.
        //		
        // This example sends and receives a message from
        // a queue.
        //**************************************************

        public static void Main()
        {
            // Create a new instance of the class.
            MyNewQueue myNewQueue = new MyNewQueue();

            // Create a queue on the local computer.
            CreateQueue(".\\myQueue");
            
            // Send a message to a queue.
            myNewQueue.SendMessage();

            // Receive a message from a queue.
            myNewQueue.ReceiveMessage();

            return;
        }

        //**************************************************
        // Creates a new queue.
        //**************************************************

        public static void CreateQueue(string queuePath)
        {
            try	
            {
                if(!MessageQueue.Exists(queuePath))
                {
                    MessageQueue.Create(queuePath);
                }
                else
                {
                    Console.WriteLine(queuePath + " already exists.");
                }
            }
            catch (MessageQueueException e)
            {
                Console.WriteLine(e.Message);
            }
        }

        //**************************************************
        // Sends an image to a queue, using the BinaryMessageFormatter.
        //**************************************************
        
        public void SendMessage()
        {
            try{

                // Create a new bitmap.
                // The file must be in the \bin\debug or \bin\retail folder, or
                // you must give a full path to its location.
                Image myImage = Bitmap.FromFile("SentImage.bmp");

                // Connect to a queue on the local computer.
                MessageQueue myQueue = new MessageQueue(".\\myQueue");
                
                Message myMessage = new Message(myImage, new BinaryMessageFormatter());

                // Send the image to the queue.
                myQueue.Send(myMessage);
            }
            catch(ArgumentException e)
            {
                Console.WriteLine(e.Message);
            }

            return;
        }

        //**************************************************
        // Receives a message containing an image.
        //**************************************************
        
        public  void ReceiveMessage()
        {
                        
            try
            {

                // Connect to the a queue on the local computer.
                MessageQueue myQueue = new MessageQueue(".\\myQueue");

                // Set the formatter to indicate body contains an Order.
                myQueue.Formatter = new BinaryMessageFormatter();

                // Receive and format the message.
                System.Messaging.Message myMessage = myQueue.Receive();
                Bitmap myImage = (Bitmap)myMessage.Body;
                
                // This will be saved in the \bin\debug or \bin\retail folder.
                myImage.Save("ReceivedImage.bmp",System.Drawing.Imaging.ImageFormat.Bmp);
            }
            
            catch (MessageQueueException)
            {
                // Handle Message Queuing exceptions.
            }

            // Handle invalid serialization format.
            catch (InvalidOperationException e)
            {
                Console.WriteLine(e.Message);
            }

            catch (IOException e)
            {
                // Handle file access exceptions.
            }
            
            // Catch other exceptions as necessary.

            return;
        }
    }
}
Imports System.Messaging
Imports System.Drawing
Imports System.IO


Namespace MyProj
    _
   
   
   Public Class MyNewQueue
      
      
      '**************************************************
      ' Provides an entry point into the application.
      '		 
      ' This example sends and receives a message from
      ' a queue.
      '**************************************************
      Public Shared Sub Main()
         ' Create a new instance of the class.
         Dim myNewQueue As New MyNewQueue()
         
         ' Create a queue on the local computer.
         CreateQueue(".\myQueue")
         
         ' Send a message to a queue.
         myNewQueue.SendMessage()
         
         ' Receive a message from a queue.
         myNewQueue.ReceiveMessage()
         
         Return
      End Sub
      
      
      '**************************************************
      ' Creates a new queue.
      '**************************************************
      Public Shared Sub CreateQueue(queuePath As String)
         Try
            If Not MessageQueue.Exists(queuePath) Then
               MessageQueue.Create(queuePath)
            Else
               Console.WriteLine((queuePath + " already exists."))
            End If
         Catch e As MessageQueueException
            Console.WriteLine(e.Message)
         End Try
      End Sub
       
      
      '**************************************************
      ' Sends an image to a queue, using the BinaryMessageFormatter.
      '**************************************************
      Public Sub SendMessage()
         Try
            
            ' Create a new bitmap.
            ' The file must be in the \bin\debug or \bin\retail folder, or
            ' you must give a full path to its location.
            Dim myImage As Image = Bitmap.FromFile("SentImage.bmp")
            
            ' Connect to a queue on the local computer.
            Dim myQueue As New MessageQueue(".\myQueue")
            
            Dim myMessage As New Message(myImage, New BinaryMessageFormatter())
            
            ' Send the image to the queue.
            myQueue.Send(myMessage)
         Catch e As ArgumentException
            Console.WriteLine(e.Message)
         End Try 
         
         Return
      End Sub
      
      
      
      '**************************************************
      ' Receives a message containing an image.
      '**************************************************
      Public Sub ReceiveMessage()
         
         Try
            
            ' Connect to the a queue on the local computer.
            Dim myQueue As New MessageQueue(".\myQueue")
            
            ' Set the formatter to indicate body contains an Order.
            myQueue.Formatter = New BinaryMessageFormatter()
            
            ' Receive and format the message. 
            Dim myMessage As System.Messaging.Message = myQueue.Receive()
            Dim myImage As Bitmap = CType(myMessage.Body, Bitmap)
            
            ' This will be saved in the \bin\debug or \bin\retail folder.
            myImage.Save("ReceivedImage.bmp", System.Drawing.Imaging.ImageFormat.Bmp)
         
         
         
         'Catch
         ' Handle Message Queuing exceptions.
         
         ' Handle invalid serialization format.
         Catch e As InvalidOperationException
            Console.WriteLine(e.Message)
         
         Catch e As IOException
         End Try
         ' Handle file access exceptions.
         
         ' Catch other exceptions as necessary.
         Return
      End Sub
   End Class
End Namespace 'MyProj

다음 코드 예제에서는 사용 하 여 메시지 본문을 서식 지정 하는 방법을 보여 줍니다 XmlMessageFormatter합니다.

#using <system.dll>
#using <system.messaging.dll>
#using <system.drawing.dll>

using namespace System;
using namespace System::Messaging;
using namespace System::Drawing;
using namespace System::IO;
ref class Order
{
public:
   int orderId;
   DateTime orderTime;
};

ref class MyNewQueue
{
public:
   static void CreateQueue( String^ queuePath )
   {
      try
      {
         if (  !MessageQueue::Exists( queuePath ) )
         {
            MessageQueue::Create( queuePath );
         }
         else
         {
            Console::WriteLine(  "{0} already exists.", queuePath );
         }
      }
      catch ( MessageQueueException^ e ) 
      {
         Console::WriteLine( e->Message );
      }

   }

   void SendMessage()
   {
      try
      {
         // Create a new order and set values.
         Order^ sentOrder = gcnew Order;
         sentOrder->orderId = 3;
         sentOrder->orderTime = DateTime::Now;

         // Connect to a queue on the local computer.
         MessageQueue^ myQueue = gcnew MessageQueue( ".\\myQueue" );

         // Create the new order.
         Message^ myMessage = gcnew Message( sentOrder );

         // Send the order to the queue.
         myQueue->Send( myMessage );
      }
      catch ( ArgumentException^ e ) 
      {
         Console::WriteLine( e->Message );
      }

      return;
   }

   void ReceiveMessage()
   {
      // Connect to the a queue on the local computer.
      MessageQueue^ myQueue = gcnew MessageQueue( ".\\myQueue" );

      // Set the formatter to indicate body contains an Order.
      array<Type^>^p = gcnew array<Type^>(1);
      p[ 0 ] = Order::typeid;
      myQueue->Formatter = gcnew XmlMessageFormatter( p );
      try
      {
         // Receive and format the message. 
         Message^ myMessage = myQueue->Receive();
         Order^ myOrder = dynamic_cast<Order^>(myMessage->Body);

         // Display message information.
         Console::WriteLine( "Order ID: {0}", myOrder->orderId );
         Console::WriteLine( "Sent: {0}", myOrder->orderTime );
      }
      catch ( MessageQueueException^ ) 
      {
         // Handle Message Queuing exceptions.
      }
      // Handle invalid serialization format.
      catch ( InvalidOperationException^ e ) 
      {
         Console::WriteLine( e->Message );
      }

      // Catch other exceptions as necessary.
      return;
   }
};

int main()
{
   // Create a new instance of the class.
   MyNewQueue^ myNewQueue = gcnew MyNewQueue;

   // Create a queue on the local computer.
   MyNewQueue::CreateQueue( ".\\myQueue" );

   // Send a message to a queue.
   myNewQueue->SendMessage();

   // Receive a message from a queue.
   myNewQueue->ReceiveMessage();
   return 0;
}
using System;
using System.Messaging;
using System.Drawing;
using System.IO;

namespace MyProject
{

    // The following example
    // sends to a queue and receives from a queue.
    public class Order
    {
        public int orderId;
        public DateTime orderTime;
    };	

    /// <summary>
    /// Provides a container class for the example.
    /// </summary>
    public class MyNewQueue
    {

        //**************************************************
        // Provides an entry point into the application.
        //		
        // This example sends and receives a message from
        // a queue.
        //**************************************************

        public static void Main()
        {
            // Create a new instance of the class.
            MyNewQueue myNewQueue = new MyNewQueue();

            // Create a queue on the local computer.
            CreateQueue(".\\myQueue");
            
            // Send a message to a queue.
            myNewQueue.SendMessage();

            // Receive a message from a queue.
            myNewQueue.ReceiveMessage();

            return;
        }

        //**************************************************
        // Creates a new queue.
        //**************************************************

        public static void CreateQueue(string queuePath)
        {
            try	
            {
                if(!MessageQueue.Exists(queuePath))
                {
                    MessageQueue.Create(queuePath);
                }
                else
                {
                    Console.WriteLine(queuePath + " already exists.");
                }
            }
            catch (MessageQueueException e)
            {
                Console.WriteLine(e.Message);
            }
        }

        //**************************************************
        // Sends an Order to a queue.
        //**************************************************
        
        public void SendMessage()
        {
            try
            {

                // Create a new order and set values.
                Order sentOrder = new Order();
                sentOrder.orderId = 3;
                sentOrder.orderTime = DateTime.Now;

                // Connect to a queue on the local computer.
                MessageQueue myQueue = new MessageQueue(".\\myQueue");

                // Create the new order.
                Message myMessage = new Message(sentOrder);

                // Send the order to the queue.
                myQueue.Send(myMessage);
            }
            catch(ArgumentException e)
            {
                Console.WriteLine(e.Message);
            }

            return;
        }

        //**************************************************
        // Receives a message containing an order.
        //**************************************************
        
        public  void ReceiveMessage()
        {
            // Connect to the a queue on the local computer.
            MessageQueue myQueue = new MessageQueue(".\\myQueue");

            // Set the formatter to indicate body contains an Order.
            myQueue.Formatter = new XmlMessageFormatter(new Type[]
                {typeof(MyProject.Order)});
            
            try
            {
                // Receive and format the message.
                Message myMessage =	myQueue.Receive();
                Order myOrder = (Order)myMessage.Body;

                // Display message information.
                Console.WriteLine("Order ID: " +
                    myOrder.orderId.ToString());
                Console.WriteLine("Sent: " +
                    myOrder.orderTime.ToString());
            }
            
            catch (MessageQueueException)
            {
                // Handle Message Queuing exceptions.
            }

                // Handle invalid serialization format.
            catch (InvalidOperationException e)
            {
                Console.WriteLine(e.Message);
            }
            
            // Catch other exceptions as necessary.

            return;
        }
    }
}
Imports System.Messaging
Imports System.Drawing
Imports System.IO



   
' The following example 
' sends to a queue and receives from a queue.
Public Class Order
      Public orderId As Integer
      Public orderTime As DateTime
End Class

   
  
' Provides a container class for the example.

Public Class MyNewQueue
      
      

   ' Provides an entry point into the application.
   '		 
   ' This example sends and receives a message from
   ' a queue.

   Public Shared Sub Main()
      ' Create a new instance of the class.
      Dim myNewQueue As New MyNewQueue()
        
      ' Create a queue on the local computer.
      CreateQueue(".\myQueue")
         
      ' Send a message to a queue.
      myNewQueue.SendMessage()
       
      ' Receive a message from a queue.
      myNewQueue.ReceiveMessage()
         
      Return
   End Sub
      
      

      ' Creates a new queue.
   Public Shared Sub CreateQueue(queuePath As String)
      Try
         If Not MessageQueue.Exists(queuePath) Then
            MessageQueue.Create(queuePath)
         Else
            Console.WriteLine((queuePath + " already exists."))
         End If
      Catch e As MessageQueueException
         Console.WriteLine(e.Message)
      End Try
   End Sub
       
      

      ' Sends an Order to a queue.

   Public Sub SendMessage()
      Try
            
            ' Create a new order and set values.
            Dim sentOrder As New Order()
            sentOrder.orderId = 3
            sentOrder.orderTime = DateTime.Now
            
            ' Connect to a queue on the local computer.
            Dim myQueue As New MessageQueue(".\myQueue")
            
            
            
            ' Create the new order.
            Dim myMessage As New Message(sentOrder)
            
            ' Send the order to the queue.
            myQueue.Send(myMessage)
      Catch e As ArgumentException
            Console.WriteLine(e.Message)
      End Try 
         
      Return
   End Sub
      
      
      
 
      ' Receives a message containing an order.
 
   Public Sub ReceiveMessage()
         ' Connect to the a queue on the local computer.
         Dim myQueue As New MessageQueue(".\myQueue")
         
         ' Set the formatter to indicate body contains an Order.
         myQueue.Formatter = New XmlMessageFormatter(New Type() {GetType(Order)})
         
         Try
            ' Receive and format the message. 
            Dim myMessage As Message = myQueue.Receive()
            Dim myOrder As Order = CType(myMessage.Body, Order)
            
            ' Display message information.
            Console.WriteLine(("Order ID: " + myOrder.orderId.ToString()))
            Console.WriteLine(("Sent: " + myOrder.orderTime.ToString()))
         
  
         ' Handle invalid serialization format.
         Catch e As InvalidOperationException
            Console.WriteLine(e.Message)
         End Try
         
         ' Catch other exceptions as necessary.
         Return
   End Sub
End Class

설명

사용 하 여는 Message 클래스 보기 또는 큐에서 메시지를 수신 하거나 큐에 메시지를 보낼 때 메시지 속성에 대해 세부적으로 제어할 필요가 있습니다.

MessageQueue 사용 하 여는 Message 클래스를 관찰 합니다. 또는 큐에서 메시지를 수신 하기 때문에 모두를 MessageQueue.PeekMessageQueue.Receive 메서드의 새 인스턴스를 만들고를 Message 클래스 및 인스턴스 속성을 설정 합니다. Message 클래스의 읽기 전용 속성은 읽기/쓰기 속성은 전송 및 메시지를 검색에 적용 하는 동안 큐에서 메시지를 검색에 적용 합니다. 때 MessageQueue 관찰 하거나 큐에서 메시지를 받을 해당 MessageReadPropertyFilter 속성 검색 되는 메시지의 속성을 결정 합니다.

합니다 MessageQueue 클래스의 Send 메서드는 큐로 송신할 메시지에 대 한 모든 개체 형식을 지정할 수 있습니다. 사용할 수는 MessageQueue 인스턴스의 DefaultPropertiesToSend 큐로 전송 하는 제네릭 메시지에 대 한 설정을 지정 하는 속성입니다. 설정의 형식에는 포맷터, 레이블, 암호화 및 인증 포함 됩니다. 적절 한 값을 지정할 수도 있습니다 DefaultPropertiesToSend 승인 및 보고서 메시지에 응답 메시징 애플리케이션을 조정 하는 경우 멤버입니다. 인스턴스를 Message 사용하여 큐에 메시지를 보내면 단일 메시지 또는 메시지 단위로 이러한 많은 속성에 액세스하고 수정할 수 있습니다. Message 속성 보다 우선적으로 적용 DefaultPropertiesToSend합니다.

메시지 데이터에 저장 됩니다는 Body 속성 및 정도 덜하지만 합니다 AppSpecificExtension 속성입니다. 메시지 데이터 암호화, 직렬화 또는 역직렬화의 내용만 Body 속성에 영향을 받습니다.

내용의 합니다 Body 속성은 메시지를 보낼 때 사용 하 여 serialize 되는 Formatter 지정할 속성입니다. Serialize 된 내용에서 발견 되는 BodyStream 속성입니다. 설정할 수도 있습니다는 BodyStream 속성 직접 예를 들어 메시지의 데이터 콘텐츠로 파일을 보낼 수 있습니다. 변경할 수 있습니다 합니다 BodyFormatter 메시지 및 데이터를 보내기 전에 언제 든 지 속성을 직렬화할지 적절 하 게 호출 하는 경우 Send합니다.

정의 하는 속성을 MessageQueue.DefaultPropertiesToSend 형식이 아닌 메시지에 대해서만 속성이 적용 Message합니다. 지정 하는 경우는 DefaultPropertiesToSend 에 대 한 속성을 MessageQueue, 동일한 이름의 속성으로는 Message 인스턴스가 전송 큐를 야기 하는 이러한 기본 속성이 무시 됩니다.

인스턴스의 초기 속성 값의 목록을 Message, 참조는 Message 생성자입니다.

생성자

Message()

본문이 비어 있는 Message 클래스의 새 인스턴스를 초기화합니다.

Message(Object)

MessageXmlMessageFormatter 클래스의 새 인스턴스를 초기화하여 지정한 개체를 메시지 본문으로 serialize합니다.

Message(Object, IMessageFormatter)

지정한 포맷터로 Message 클래스의 새 인스턴스를 초기화하여 지정한 개체를 메시지 본문으로 serialize합니다.

필드

InfiniteTimeout

제한 시간이 없도록 지정합니다.

속성

AcknowledgeType

보내는 애플리케이션으로 반환되는 승인 메시지의 형식을 가져오거나 설정합니다.

Acknowledgment

이 메시지가 나타내는 승인의 분류를 가져옵니다.

AdministrationQueue

메시지 큐에서 생성한 승인 메시지를 받는 큐를 가져오거나 설정합니다.

AppSpecific

애플리케이션 관련 추가 정보를 가져오거나 설정합니다.

ArrivedTime

메시지가 대상 큐에 도착한 시간을 가져옵니다.

AttachSenderId

보낸 사람 ID를 메시지에 첨부할지 여부를 나타내는 값을 가져오거나 설정합니다.

Authenticated

메시지가 인증되었는지 여부를 나타내는 값을 가져옵니다.

AuthenticationProviderName

메시지의 디지털 서명을 생성하는 데 사용되는 암호화 공급자의 이름을 가져오거나 설정합니다.

AuthenticationProviderType

메시지의 디지털 서명을 생성하는 데 사용되는 암호화 공급자의 형식을 가져오거나 설정합니다.

Body

메시지의 내용을 가져오거나 설정합니다.

BodyStream

메시지 본문의 정보를 가져오거나 설정합니다.

BodyType

메시지 본문에 포함되는 데이터 형식을 가져오거나 설정합니다.

CanRaiseEvents

구성 요소가 이벤트를 발생시킬 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Component)
ConnectorType

일반적으로 메시지 큐에서 설정된 일부 메시지 속성이 보내는 애플리케이션에서 설정되었음을 나타내는 값을 가져오거나 설정합니다.

Container

IContainer을 포함하는 Component를 가져옵니다.

(다음에서 상속됨 Component)
CorrelationId

원본 메시지를 참조하기 위해 승인, 보고 및 응답 메시지에서 사용하는 메시지 식별자를 가져오거나 설정합니다.

DesignMode

Component가 현재 디자인 모드인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Component)
DestinationQueue

메시지의 계획된 대상 큐를 가져옵니다.

DestinationSymmetricKey

애플리케이션에서 암호화된 메시지를 외부 큐로 보낸 경우 해당 메시지를 암호화하는 데 사용하는 대칭 키를 가져오거나 설정합니다.

DigitalSignature

메시지 큐에서 메시지를 인증하는 데 사용되는 디지털 서명을 가져오거나 설정합니다.

EncryptionAlgorithm

개인 메시지의 본문을 암호화하는 데 사용되는 암호화 알고리즘을 가져오거나 설정합니다.

Events

Component에 연결된 이벤트 처리기의 목록을 가져옵니다.

(다음에서 상속됨 Component)
Extension

메시지에 연결된 애플리케이션 정의 추가 정보를 가져오거나 설정합니다.

Formatter

개체를 메시지 본문으로 직렬화하거나 메시지 본문에서 역직렬화하는 데 사용되는 포맷터를 가져오거나 설정합니다.

HashAlgorithm

메시지를 인증하거나 메시지에 대해 디지털 서명을 만들 때 메시지 큐에서 사용하는 해시 알고리즘을 가져오거나 설정합니다.

Id

메시지의 식별자를 가져옵니다.

IsFirstInTransaction

메시지가 트랜잭션에서 보낸 첫 번째 메시지인지 여부를 나타내는 값을 가져옵니다.

IsLastInTransaction

메시지가 트랜잭션에서 보낸 마지막 메시지인지 여부를 나타내는 값을 가져옵니다.

Label

메시지를 설명하는 애플리케이션 정의 유니코드 문자열을 가져오거나 설정합니다.

LookupId

MSMQ 3.0에서 도입되었습니다. 메시지의 조회 식별자를 가져옵니다.

MessageType

메시지 형식(Normal, Acknowledgment 또는 Report)를 가져옵니다.

Priority

메시지를 큐에 배치하는 위치를 결정하는 메시지 우선 순위를 가져오거나 설정합니다.

Recoverable

시스템 장애 또는 네트워크 문제가 있는 경우 메시지를 보낼지 여부를 나타내는 값을 가져오거나 설정합니다.

ResponseQueue

애플리케이션에서 생성한 응답 메시지를 받는 큐를 가져오거나 설정합니다.

SecurityContext

메시지에 대한 보안 컨텍스트를 가져오거나 설정합니다.

SenderCertificate

메시지를 인증하는 데 사용되는 보안 인증서를 가져오거나 설정합니다.

SenderId

보내는 사용자의 식별자를 가져옵니다.

SenderVersion

메시지를 보내는데 사용되는 메시지 큐 버전을 가져옵니다.

SentTime

보내는 컴퓨터의 소스 큐 관리자가 메시지를 보낸 날짜 및 시간을 가져옵니다.

Site

ComponentISite를 가져오거나 설정합니다.

(다음에서 상속됨 Component)
SourceMachine

메시지를 처음 생성한 컴퓨터를 가져옵니다.

TimeToBeReceived

대상 큐에서 메시지를 받는 데 필요한 최대 시간을 가져오거나 설정합니다.

TimeToReachQueue

메시지가 큐에 도달하기까지의 최대 시간을 가져오거나 설정합니다.

TransactionId

메시지가 일부인 트랜잭션의 식별자를 가져옵니다.

TransactionStatusQueue

소스 컴퓨터의 트랜잭션 상태 큐를 가져옵니다.

UseAuthentication

메시지를 보내기 전에 인증해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.

UseDeadLetterQueue

배달되지 않은 메시지의 복사본을 배달 못 한 큐로 보낼지 여부를 나타내는 값을 가져오거나 설정합니다.

UseEncryption

개인 메시지를 만들지 여부를 나타내는 값을 가져오거나 설정합니다.

UseJournalQueue

메시지의 복사본을 원래 컴퓨터의 컴퓨터 업무 일지에 보관할지 여부를 나타내는 값을 가져오거나 설정합니다.

UseTracing

메시지가 대상 큐로 이동할 때 해당 메시지를 추적할지 여부를 나타내는 값을 가져오거나 설정합니다.

메서드

CreateObjRef(Type)

원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
Dispose()

Component에서 사용하는 모든 리소스를 해제합니다.

(다음에서 상속됨 Component)
Dispose(Boolean)

Component에서 사용하는 관리되지 않는 리소스를 해제하고, 관리되는 리소스를 선택적으로 해제할 수 있습니다.

(다음에서 상속됨 Component)
Equals(Object)

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

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

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

(다음에서 상속됨 Object)
GetLifetimeService()
사용되지 않습니다.

이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다.

(다음에서 상속됨 MarshalByRefObject)
GetService(Type)

Component 또는 해당 Container에서 제공하는 서비스를 나타내는 개체를 반환합니다.

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

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

(다음에서 상속됨 Object)
InitializeLifetimeService()
사용되지 않습니다.

이 인스턴스의 수명 정책을 제어하는 수명 서비스 개체를 가져옵니다.

(다음에서 상속됨 MarshalByRefObject)
MemberwiseClone()

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

(다음에서 상속됨 Object)
MemberwiseClone(Boolean)

현재 MarshalByRefObject 개체의 단순 복사본을 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
ToString()

Component의 이름이 포함된 String을 반환합니다(있는 경우). 이 메서드는 재정의할 수 없습니다.

(다음에서 상속됨 Component)

이벤트

Disposed

Dispose() 메서드를 호출하여 구성 요소를 삭제할 때 발생합니다.

(다음에서 상속됨 Component)

적용 대상

추가 정보