message
「message」とは・「message」の意味
「message」は、日本語で「メッセージ」と訳される言葉で、情報や意思を伝えるために送る文章や言葉のことを指す。不可算名詞であり、複数形は「messages」となる。また、「message」は動詞としても使用され、他人に情報や意思を伝える行為を表すことがある。「message」の発音・読み方
「message」の発音は、/mésɪdʒ/である。最初の音節「mes」は「メス」と発音し、次の音節「sage」は「セージ」と発音する。「message」の語源・由来
「message」の語源は、ラテン語の「mittere」(送る)という動詞から派生したフランス語の「message」である。これが英語に取り入れられて「message」となった。「message」の類語
「message」の類語には、「note」(ノート)、「letter」(手紙)、「communication」(コミュニケーション)、「information」(情報)などがある。それぞれニュアンスや用途が異なるため、状況に応じて適切な言葉を選ぶことが重要である。「message」と「messages」の違い
「message」と「messages」の違いは、単数形と複数形の違いである。「message」は1つの情報や意思を伝える文章や言葉を指すのに対し、「messages」は複数の情報や意思を伝える文章や言葉を指す。「message」を含む用語・関連する用語
「messageプラス」とは
「messageプラス」は、通信アプリケーションで、メッセージの送受信やグループチャット機能を強化したものを指すことが多い。これにより、より便利で効率的なコミュニケーションが可能となる。「message be:first」とは
「message be:first」は、一般的には特定の製品やサービスの名称であり、その機能や特徴によって異なる意味を持つ。詳細は各製品やサービスの説明を参照すること。「message」の使い方・例文
1. I received a message from my friend.(友達からメッセージを受け取った。)2. Please leave a message after the beep.(ビープ音の後にメッセージを残してください。)
3. The message was not clear.(メッセージがはっきりしなかった。)
4. She sent me a message on social media.(彼女はSNSで私にメッセージを送った。)
5. The manager will message you the details.(マネージャーが詳細をメッセージで送ります。)
6. I need to message my family about my arrival time.(到着時刻について家族にメッセージを送る必要がある。)
7. The advertisement had a powerful message.(その広告は強力なメッセージがあった。)
8. The speaker's message resonated with the audience.(スピーカーのメッセージは聴衆に共感を呼んだ。)
9. He left a message on the answering machine.(彼は留守番電話にメッセージを残した。)
10. The message was encrypted for security reasons.(メッセージはセキュリティ上の理由で暗号化されていた。)
メッセージ
メッセージ
メッセージとは、「伝言」を意味する英語である。IT用語としては、主に、コンピュータの動作状況を通知する目的で表示される文字情報、あるいは、ユーザー同士の間で文字情報をやり取りする機能やサービスなどを指す。
コンピュータからユーザーへの通知として表示されるメッセージは、エラーの発生を通知したり、処理の進捗状況を通知したり、あるいは、推奨されない操作が実行されようとした場合に警告したり、といった目的で行われる。エラー発生を通知するメッセージは特にエラーメッセージと呼ばれる。
ユーザー間のコミュニケーション手段としてのメッセージは、電子メール、SMS(ショートメッセージサービス)、インスタントメッセンジャー(IM)などで交わされるテキストそのものを指す。ちなみに、AppleがOS X Mountain Lionで標準機能として追加したインスタントメッセンジャーの名称も「メッセージ」である。「メッセ」と略される場合もある。
英語では「メッセージをやり取りする」という意味の動詞をmessagingという。インスタントメッセンジャーにおけるmessengerは、メッセージと語源を共にするものの、単独で「配達人」「使いの者」などの意味を持つ語である。
Message イベント
Message クラス
アセンブリ: Microsoft.Build.Tasks (microsoft.build.tasks.dll 内)


Microsoft.Build.Utilities.Task
Microsoft.Build.Tasks.TaskExtension
Microsoft.Build.Tasks.Message


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message クラス
アセンブリ: System.Messaging (system.messaging.dll 内)


Message クラスは、キューからのメッセージをピークまたは受信したり、キューにメッセージを送信するときにメッセージ プロパティを細かく制御したりするために使用します。
MessageQueue は、キューからのメッセージをピークまたは受信するときに Message クラスを使用します。これは、MessageQueue.Peek メソッドと MessageQueue.Receive メソッドがどちらも Message クラスの新しいインスタンスを作成し、インスタンスのプロパティを設定するためです。Message クラスの読み取り専用プロパティは、キューからのメッセージの取得に適用され、読み取り/書き込みプロパティはメッセージの送信と取得に適用されます。MessageQueue がキューからメッセージをピークまたは受信するときに、MessageReadPropertyFilter プロパティによって、メッセージのどのプロパティが取得されるかが決まります。
MessageQueue クラスの Send メソッドでは、そのキューに送信するメッセージとして任意のオブジェクト型を指定できます。MessageQueue インスタンスの DefaultPropertiesToSend プロパティを使うと、キューに送信される汎用メッセージの設定を指定できます。設定できるのは、書式指定子、ラベル、暗号化、認証などです。また、受信確認メッセージとレポート メッセージに応答するようにメッセージ処理アプリケーションを調整するときに、適切な DefaultPropertiesToSend メンバの値を指定することもできます。Message インスタンスを使ってキューにメッセージを送信する方法では、これらのプロパティの多くにアクセスして変更できます。1 つのメッセージだけ、またはメッセージごとのどちらかでプロパティを変更できます。Message プロパティは DefaultPropertiesToSend プロパティに優先します。
メッセージ データは主として Body プロパティに格納されますが、一部のデータは AppSpecific プロパティと Extension プロパティに格納されます。このうち、メッセージ データが暗号化、シリアル化、または逆シリアル化されるときに影響を受けるのは、Body プロパティの内容だけです。
Body プロパティの内容は、メッセージが送信されるときに、指定した Formatter プロパティを使ってシリアル化されます。シリアル化された内容は、BodyStream プロパティに格納されます。また、たとえばメッセージのデータ内容としてファイルを送信するために、BodyStream プロパティを直接設定することもできます。Body プロパティまたは Formatter プロパティは、メッセージを送信する前にいつでも変更でき、Send の呼び出し時にデータはその指定どおりにシリアル化されます。
MessageQueue.DefaultPropertiesToSend プロパティによって定義されるプロパティは、Message 以外のタイプのメッセージだけに適用されます。MessageQueue の DefaultPropertiesToSend プロパティを指定していても、キューに Message インスタンスが送信されると、そのインスタンスの同名のプロパティが使用され、プロパティの既定値は無視されます。
Message のインスタンスの初期プロパティ値の一覧については、Message コンストラクタのトピックを参照してください。

BinaryMessageFormatter を使用してメッセージの本文を書式設定するコード例を次に示します。
Imports System 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 'Main '************************************************** ' 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 'CreateQueue '************************************************** ' 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 'SendMessage '************************************************** ' 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 'ReceiveMessage End Class 'MyNewQueue End Namespace 'MyProj
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; } } }
#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; }
package MyProject; import System.*; import System.Messaging.*; import System.Drawing.*; import System.IO.*; /// <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(String[] args) { // 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; } //main //************************************************** // 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.get_Message()); } } //CreateQueue //************************************************** // 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.get_Message()); } return; } //SendMessage //************************************************** // 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.set_Formatter(new BinaryMessageFormatter()); // Receive and format the message. System.Messaging.Message myMessage = myQueue.Receive(); Bitmap myImage = (Bitmap)myMessage.get_Body(); // This will be saved in the \bin\debug or \bin\retail folder. myImage.Save("ReceivedImage.bmp", System.Drawing.Imaging.ImageFormat.get_Bmp()); } catch (MessageQueueException exp) { // Handle Message Queuing exceptions. } // Handle invalid serialization format. catch (InvalidOperationException e) { Console.WriteLine(e.get_Message()); } catch (IOException e) { // Handle file access exceptions. } // Catch other exceptions as necessary. return; } //ReceiveMessage } //MyNewQueue
XmlMessageFormatter を使用してメッセージの本文を書式設定するコード例を次に示します。
Imports System 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 'Order ' 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 'Main ' 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 'CreateQueue ' 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 'SendMessage ' 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 'ReceiveMessage End Class 'MyNewQueue
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; } } }
#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; }
package MyProject; import System.*; import System.Messaging.*; import System.Drawing.*; import System.IO.*; // The following example // sends to a queue and receives from a queue. public class Order { public int orderId; public DateTime orderTime; } //Order /// <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(String[] args) { // 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; } //main //************************************************** // 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.get_Message()); } } //CreateQueue //************************************************** // 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.get_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.get_Message()); } return; } //SendMessage //************************************************** // 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.set_Formatter(new XmlMessageFormatter(new Type[] { MyProject.Order.class.ToType() })); try { // Receive and format the message. Message myMessage = myQueue.Receive(); Order myOrder = (Order)myMessage.get_Body(); // Display message information. Console.WriteLine("Order ID: " + Convert.ToString(myOrder.orderId)); Console.WriteLine("Sent: " + myOrder.orderTime.ToString()); } catch (MessageQueueException exp) { // Handle Message Queuing exceptions. } // Handle invalid serialization format. catch (InvalidOperationException e) { Console.WriteLine(e.get_Message()); } // Catch other exceptions as necessary. return; } //ReceiveMessage } //MyNewQueue

System.MarshalByRefObject
System.ComponentModel.Component
System.Messaging.Message


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message クラス
アセンブリ: System.Web.Services (system.web.services.dll 内)


Message には、ドキュメント指向の情報とプロシージャ指向の情報のいずれかを格納できます。プロシージャ指向のメッセージにはパラメータと戻り値が含まれ、ドキュメント指向のメッセージにはドキュメントが含まれます。
Message クラスは、definitions ルート要素で囲まれた WSDL (Web Services Description Language) message 要素に対応します。WSDL の詳細については、http://www.w3.org/TR/wsdl/ の仕様を参照してください。

' Creates a Message with name = messageName having one MessagePart ' with name = partName. Public Shared Function CreateMessage(messageName As String, _ partName As String, element As String, targetNamespace As String) _ As Message Dim myMessage As New Message() myMessage.Name = messageName Dim myMessagePart As New MessagePart() myMessagePart.Name = partName myMessagePart.Element = New XmlQualifiedName(element, targetNamespace) myMessage.Parts.Add(myMessagePart) Return myMessage End Function 'CreateMessage
// Creates a Message with name = messageName having one MessagePart // with name = partName. public static Message CreateMessage(string messageName,string partName, string element,string targetNamespace) { Message myMessage = new Message(); myMessage.Name = messageName; MessagePart myMessagePart = new MessagePart(); myMessagePart.Name = partName; myMessagePart.Element = new XmlQualifiedName(element,targetNamespace); myMessage.Parts.Add(myMessagePart); return myMessage; }
// Creates a Message with name = messageName having one MessagePart // with name = partName. public: static Message^ CreateMessage( String^ messageName, String^ partName, String^ element, String^ targetNamespace ) { Message^ myMessage = gcnew Message; myMessage->Name = messageName; MessagePart^ myMessagePart = gcnew MessagePart; myMessagePart->Name = partName; myMessagePart->Element = gcnew XmlQualifiedName( element,targetNamespace ); myMessage->Parts->Add( myMessagePart ); return myMessage; }

System.Web.Services.Description.DocumentableItem
System.Web.Services.Description.NamedItem
System.Web.Services.Description.Message


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message コンストラクタ ()
アセンブリ: System.Messaging (system.messaging.dll 内)


このオーバーロードを使用して、本文が空の Message クラスの新しいインスタンスを作成します。
Message オブジェクトを送信する前に、Body プロパティまたは BodyStream プロパティのいずれかを指定します。このうち Body プロパティには、テキスト文字列、構造体オブジェクト、クラス インスタンス、埋め込みオブジェクトなど、シリアル化できる任意のオブジェクトを使用できます。
メッセージの内容を BodyStream プロパティに直接書き込む以外は、メッセージを送信する前に Formatter プロパティを設定します。本文は、MessageQueue インスタンスで Send メソッドが呼び出された時点の Formatter プロパティの値を使ってシリアル化されます。
XmlMessageFormatter は疎結合であるため、この形式を使用する場合に、送信側と受信側のオブジェクト型が同じである必要はありません。ActiveXMessageFormatter と BinaryMessageFormatter は、データをシリアル化してバイナリ表現にします。ActiveXMessageFormatter は COM コンポーネントを送受信するときに使用されます。
Message のインスタンスの初期プロパティ値を次の表に示します。
AcknowledgeType | AcknowledgeType.None |
AdministrationQueue | null 参照 (Visual Basic では Nothing) |
AppSpecific | 0 |
AttachSenderId | |
AuthenticationProviderName | |
AuthenticationProviderType | CryptoProviderType.RSA_FULL |
null 参照 (Visual Basic では Nothing) | |
BodyStream | Stream.null |
BodyType | 0 |
ConnectorType | Guid.Empty |
CorrelationId | 空の文字列 ("") |
DestinationSymmetricKey | |
EncryptionAlgorithm | EncryptionAlgorithm.RC2 |
XmlMessageFormatter | |
HashAlgorithm | HashAlgorithm.MD5 |
空の文字列 ("") | |
MessagePriority.Normal | |
Recoverable | |
ResponseQueue | null 参照 (Visual Basic では Nothing) |
SenderCertificate | |
TimeToBeReceived | Message.InfiniteTimeout |
TimeToReachQueue | Message.InfiniteTimeout |
TransactionStatusQueue | null 参照 (Visual Basic では Nothing) |
UseAuthentication | |
UseDeadLetterQueue | |
UseEncryption | |
UseJournalQueue | |
UseTracing |

優先度が異なる 2 つのメッセージをキューに送信し、順番に取得するコード例を次に示します。
Imports System Imports System.Messaging '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() ' Send messages to a queue. myNewQueue.SendMessage(MessagePriority.Normal, "First Message Body.") myNewQueue.SendMessage(MessagePriority.Highest, "Second Message Body.") ' Receive messages from a queue. myNewQueue.ReceiveMessage() myNewQueue.ReceiveMessage() Return End Sub 'Main ' Sends a string message to a queue. Public Sub SendMessage(priority As MessagePriority, messageBody As String) ' Connect to a queue on the local computer. Dim myQueue As New MessageQueue(".\myQueue") ' Create a new message. Dim myMessage As New Message() If priority > MessagePriority.Normal Then myMessage.Body = "High Priority: " + messageBody Else myMessage.Body = messageBody End If ' Set the priority of the message. myMessage.Priority = priority ' Send the Order to the queue. myQueue.Send(myMessage) Return End Sub 'SendMessage ' Receives a message. Public Sub ReceiveMessage() ' Connect to the a queue on the local computer. Dim myQueue As New MessageQueue(".\myQueue") ' Set the queue to read the priority. By default, it ' is not read. myQueue.MessageReadPropertyFilter.Priority = True ' Set the formatter to indicate body contains a string. myQueue.Formatter = New XmlMessageFormatter(New Type() {GetType(String)}) Try ' Receive and format the message. Dim myMessage As Message = myQueue.Receive() ' Display message information. Console.WriteLine(("Priority: " + myMessage.Priority.ToString())) Console.WriteLine(("Body: " + myMessage.Body.ToString())) ' Handle invalid serialization format. Catch e As InvalidOperationException Console.WriteLine(e.Message) End Try ' Catch other exceptions as necessary. Return End Sub 'ReceiveMessage End Class 'MyNewQueue
using System; using System.Messaging; 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(); // Send messages to a queue. myNewQueue.SendMessage(MessagePriority.Normal, "First Message Body."); myNewQueue.SendMessage(MessagePriority.Highest, "Second Message Body."); // Receive messages from a queue. myNewQueue.ReceiveMessage(); myNewQueue.ReceiveMessage(); return; } //************************************************** // Sends a string message to a queue. //************************************************** public void SendMessage(MessagePriority priority, string messageBody) { // Connect to a queue on the local computer. MessageQueue myQueue = new MessageQueue(".\\myQueue"); // Create a new message. Message myMessage = new Message(); if(priority > MessagePriority.Normal) { myMessage.Body = "High Priority: " + messageBody; } else myMessage.Body = messageBody; // Set the priority of the message. myMessage.Priority = priority; // Send the Order to the queue. myQueue.Send(myMessage); return; } //************************************************** // Receives a message. //************************************************** public void ReceiveMessage() { // Connect to the a queue on the local computer. MessageQueue myQueue = new MessageQueue(".\\myQueue"); // Set the queue to read the priority. By default, it // is not read. myQueue.MessageReadPropertyFilter.Priority = true; // Set the formatter to indicate body contains a string. myQueue.Formatter = new XmlMessageFormatter(new Type[] {typeof(string)}); try { // Receive and format the message. Message myMessage = myQueue.Receive(); // Display message information. Console.WriteLine("Priority: " + myMessage.Priority.ToString()); Console.WriteLine("Body: " + myMessage.Body.ToString()); } catch (MessageQueueException) { // Handle Message Queuing exceptions. } // Handle invalid serialization format. catch (InvalidOperationException e) { Console.WriteLine(e.Message); } // Catch other exceptions as necessary. return; } } }
#using <system.dll> #using <system.messaging.dll> using namespace System; using namespace System::Messaging; /// <summary> /// Provides a container class for the example. /// </summary> ref class MyNewQueue { //************************************************** // Sends a string message to a queue. //************************************************** public: void SendMessage( MessagePriority priority, String^ messageBody ) { // Connect to a queue on the local computer. MessageQueue^ myQueue = gcnew MessageQueue( ".\\myQueue" ); // Create a new message. Message^ myMessage = gcnew Message; if ( priority > MessagePriority::Normal ) { myMessage->Body = "High Priority: {0}",messageBody; } else { myMessage->Body = messageBody; } // Set the priority of the message. myMessage->Priority = priority; // Send the Order to the queue. myQueue->Send( myMessage ); return; } //************************************************** // Receives a message. //************************************************** void ReceiveMessage() { // Connect to the a queue on the local computer. MessageQueue^ myQueue = gcnew MessageQueue( ".\\myQueue" ); // Set the queue to read the priority. By default, it // is not read. myQueue->MessageReadPropertyFilter->Priority = true; // Set the formatter to indicate body contains a String^. array<Type^>^ p = gcnew array<Type^>(1); p[ 0 ] = String::typeid; myQueue->Formatter = gcnew XmlMessageFormatter( p ); try { // Receive and format the message. Message^ myMessage = myQueue->Receive(); // Display message information. Console::WriteLine( "Priority: {0}", myMessage->Priority ); Console::WriteLine( "Body: {0}", myMessage->Body ); } catch ( MessageQueueException^ ) { // Handle Message Queuing exceptions. } // Handle invalid serialization format. catch ( InvalidOperationException^ e ) { Console::WriteLine( e->Message ); } // 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; // Send messages to a queue. myNewQueue->SendMessage( MessagePriority::Normal, "First Message Body." ); myNewQueue->SendMessage( MessagePriority::Highest, "Second Message Body." ); // Receive messages from a queue. myNewQueue->ReceiveMessage(); myNewQueue->ReceiveMessage(); return 0; }
package MyProject; import System.*; import System.Messaging.*; /// <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(String[] args) { // Create a new instance of the class. MyNewQueue myNewQueue = new MyNewQueue(); // Send messages to a queue. myNewQueue.SendMessage(MessagePriority.Normal, "First Message Body."); myNewQueue.SendMessage(MessagePriority.Highest, "Second Message Body."); // Receive messages from a queue. myNewQueue.ReceiveMessage(); myNewQueue.ReceiveMessage(); return; } //main //************************************************** // Sends a string message to a queue. //************************************************** public void SendMessage(MessagePriority priority, String messageBody) { // Connect to a queue on the local computer. MessageQueue myQueue = new MessageQueue(".\\myQueue"); // Create a new message. Message myMessage = new Message(); if (priority.CompareTo(MessagePriority.Normal) > 0) { myMessage.set_Body("High Priority: " + messageBody); } else { myMessage.set_Body(messageBody); } // Set the priority of the message. myMessage.set_Priority(priority); // Send the Order to the queue. myQueue.Send(myMessage); return; } //SendMessage //************************************************** // Receives a message. //************************************************** public void ReceiveMessage() { // Connect to the a queue on the local computer. MessageQueue myQueue = new MessageQueue(".\\myQueue"); // Set the queue to read the priority. By default, it // is not read. myQueue.get_MessageReadPropertyFilter().set_Priority(true); // Set the formatter to indicate body contains a string. myQueue.set_Formatter(new XmlMessageFormatter(new Type[] { String.class.ToType() })); try { // Receive and format the message. Message myMessage = myQueue.Receive(); // Display message information. Console.WriteLine("Priority: " + myMessage.get_Priority().ToString()); Console.WriteLine("Body: " + myMessage.get_Body().ToString()); } catch (MessageQueueException exp) { // Handle Message Queuing exceptions. } // Handle invalid serialization format. catch (InvalidOperationException e) { Console.WriteLine(e.get_Message()); } // Catch other exceptions as necessary. return; } //ReceiveMessage } //MyNewQueue


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message コンストラクタ (Object)
アセンブリ: System.Messaging (system.messaging.dll 内)


このオーバーロードを使用して、body パラメータによって指定された Body を含む Message クラスの新しいインスタンスを作成します。bodyパラメータに指定できるのは、テキスト文字列、構造体オブジェクト、クラス インスタンス、埋め込みオブジェクトなど、シリアル化できる任意のオブジェクトです。Message が送信される前に Formatter プロパティを変更しない限り、本文は、XmlMessageFormatter を使ってシリアル化されます。Send を呼び出す前に Body プロパティまたは Formatter プロパティを変更すると、メッセージは新しいプロパティ値に従ってシリアル化されます。
XmlMessageFormatter は疎結合であるため、この形式を使用する場合に、送信側と受信側のオブジェクト型が同じである必要はありません。ActiveXMessageFormatter と BinaryMessageFormatter は、データをシリアル化してバイナリ表現にします。ActiveXMessageFormatter は COM コンポーネントを送受信するときに使用されます。
Message のインスタンスの初期プロパティ値を次の表に示します。
AcknowledgeType | AcknowledgeType.None |
AdministrationQueue | null 参照 (Visual Basic では Nothing) |
AppSpecific | 0 |
AttachSenderId | |
AuthenticationProviderName | |
AuthenticationProviderType | CryptoProviderType.RSA_FULL |
BodyStream | Stream.null |
BodyType | 0 |
ConnectorType | Guid.Empty |
CorrelationId | 空の文字列 ("") |
DestinationSymmetricKey | |
EncryptionAlgorithm | EncryptionAlgorithm.RC2 |
XmlMessageFormatter | |
HashAlgorithm | HashAlgorithm.MD5 |
空の文字列 ("") | |
MessagePriority.Normal | |
Recoverable | |
ResponseQueue | null 参照 (Visual Basic では Nothing) |
SenderCertificate | |
TimeToBeReceived | Message.InfiniteTimeout |
TimeToReachQueue | Message.InfiniteTimeout |
TransactionStatusQueue | null 参照 (Visual Basic では Nothing) |
UseAuthentication | |
UseDeadLetterQueue | |
UseEncryption | |
UseJournalQueue | |
UseTracing |

新しいキューを作成し、オーダーを含むメッセージをキューに送信し、最後にメッセージを受信するコード例を次に示します。
Imports System 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 'Order ' 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 'Main ' 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 'CreateQueue ' 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 'SendMessage ' 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 'ReceiveMessage End Class 'MyNewQueue
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; } } }
#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; }
package MyProject; import System.*; import System.Messaging.*; import System.Drawing.*; import System.IO.*; // The following example // sends to a queue and receives from a queue. public class Order { public int orderId; public DateTime orderTime; } //Order /// <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(String[] args) { // 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; } //main //************************************************** // 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.get_Message()); } } //CreateQueue //************************************************** // 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.get_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.get_Message()); } return; } //SendMessage //************************************************** // 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.set_Formatter(new XmlMessageFormatter(new Type[] { MyProject.Order.class.ToType() })); try { // Receive and format the message. Message myMessage = myQueue.Receive(); Order myOrder = (Order)myMessage.get_Body(); // Display message information. Console.WriteLine("Order ID: " + Convert.ToString(myOrder.orderId)); Console.WriteLine("Sent: " + myOrder.orderTime.ToString()); } catch (MessageQueueException exp) { // Handle Message Queuing exceptions. } // Handle invalid serialization format. catch (InvalidOperationException e) { Console.WriteLine(e.get_Message()); } // Catch other exceptions as necessary. return; } //ReceiveMessage } //MyNewQueue


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message クラス
Message メンバ
System.Messaging 名前空間
XmlMessageFormatter
DefaultPropertiesToSend クラス
MessageQueue
Send
Peek
Receive
Message コンストラクタ (Object, IMessageFormatter)
アセンブリ: System.Messaging (system.messaging.dll 内)


このオーバーロードを使用して、body パラメータによって指定され、本文をシリアル化するための有効なフォーマッタを使用する Body を格納する、Message クラスの新しいインスタンスを作成します。bodyパラメータに指定できるのは、テキスト文字列、構造体オブジェクト、クラス インスタンス、埋め込みオブジェクトなど、シリアル化できる任意のオブジェクトです。Send を呼び出す前に Body プロパティまたは Formatter プロパティを変更すると、メッセージは新しいプロパティ値に従ってシリアル化されます。
XmlMessageFormatter は疎結合であるため、この形式を使用する場合に、送信側と受信側のオブジェクト型が同じである必要はありません。ActiveXMessageFormatter と BinaryMessageFormatter は、データをシリアル化してバイナリ表現にします。ActiveXMessageFormatter は COM コンポーネントを送受信するときに使用されます。
Message のインスタンスの初期プロパティ値を次の表に示します。
AcknowledgeType | AcknowledgeType.None |
AdministrationQueue | null 参照 (Visual Basic では Nothing) |
AppSpecific | 0 |
AttachSenderId | |
AuthenticationProviderName | |
AuthenticationProviderType | CryptoProviderType.RSA_FULL |
BodyStream | Stream.null |
BodyType | 0 |
ConnectorType | Guid.Empty |
CorrelationId | 空の文字列 ("") |
DestinationSymmetricKey | |
EncryptionAlgorithm | EncryptionAlgorithm.RC2 |
HashAlgorithm | HashAlgorithm.MD5 |
空の文字列 ("") | |
MessagePriority.Normal | |
Recoverable | |
ResponseQueue | null 参照 (Visual Basic では Nothing) |
SenderCertificate | |
TimeToBeReceived | Message.InfiniteTimeout |
TimeToReachQueue | Message.InfiniteTimeout |
TransactionStatusQueue | null 参照 (Visual Basic では Nothing) |
UseAuthentication | |
UseDeadLetterQueue | |
UseEncryption | |
UseJournalQueue | |
UseTracing |

Imports System 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 'Main '************************************************** ' 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 'CreateQueue '************************************************** ' 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 'SendMessage '************************************************** ' 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 'ReceiveMessage End Class 'MyNewQueue End Namespace 'MyProj
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; } } }
#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; }
package MyProject; import System.*; import System.Messaging.*; import System.Drawing.*; import System.IO.*; /// <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(String[] args) { // 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; } //main //************************************************** // 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.get_Message()); } } //CreateQueue //************************************************** // 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.get_Message()); } return; } //SendMessage //************************************************** // 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.set_Formatter(new BinaryMessageFormatter()); // Receive and format the message. System.Messaging.Message myMessage = myQueue.Receive(); Bitmap myImage = (Bitmap)myMessage.get_Body(); // This will be saved in the \bin\debug or \bin\retail folder. myImage.Save("ReceivedImage.bmp", System.Drawing.Imaging.ImageFormat.get_Bmp()); } catch (MessageQueueException exp) { // Handle Message Queuing exceptions. } // Handle invalid serialization format. catch (InvalidOperationException e) { Console.WriteLine(e.get_Message()); } catch (IOException e) { // Handle file access exceptions. } // Catch other exceptions as necessary. return; } //ReceiveMessage } //MyNewQueue


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message コンストラクタ
アセンブリ: Microsoft.Build.Tasks (microsoft.build.tasks.dll 内)



Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message コンストラクタ

名前 | 説明 |
---|---|
Message () | Message クラスの新しいインスタンスを、空の本文で初期化します。 .NET Compact Framework によってサポートされています。 |
Message (Object) | 指定したオブジェクトをメッセージの本文にシリアル化するために XmlMessageFormatter を使用して、Message クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
Message (Object, IMessageFormatter) | 指定したオブジェクトをメッセージの本文にシリアル化するために指定したフォーマッタを使用して、Message クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |

関連項目
Message クラスMessage メンバ
System.Messaging 名前空間
XmlMessageFormatter
Body
DefaultPropertiesToSend クラス
MessageQueue
Send
Peek
Receive
Message コンストラクタ
アセンブリ: System.Web.Services (system.web.services.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message フィールド
Message プロパティ

名前 | 説明 | |
---|---|---|
![]() | BuildEngine | タスクによって使用される IBuildEngine オブジェクトのインスタンスを取得または設定します。 ( Task から継承されます。) |
![]() | HostObject | タスクに関連付けられているホスト オブジェクトを取得または設定します。 ( Task から継承されます。) |
![]() | Importance | |
![]() | Log | タスク ログ メソッドを格納している TaskLoggingHelperExtension のインスタンスを取得します。 ( TaskExtension から継承されます。) |
![]() | Text |

名前 | 説明 | |
---|---|---|
![]() | HelpKeywordPrefix | リソース名からヘルプ キーワードを作成するために使用するプレフィックスを取得または設定します。 ( Task から継承されます。) |
![]() | TaskResources | タスクに関連付けられているカルチャ固有のリソースを取得または設定します。 ( Task から継承されます。) |

Message プロパティ
Message プロパティ

名前 | 説明 | |
---|---|---|
![]() ![]() ![]() ![]() ![]() ![]() | AttachSenderId | メッセージに差出人の ID を結び付ける必要があるかどうかを示す値を取得または設定します。 |
![]() | Authenticated | メッセージが認証されたかどうかを示す値を取得します。 |
![]() | AuthenticationProviderName | メッセージのデジタル署名を生成するのに使われる暗号化プロバイダの名前を取得または設定します。 |
![]() | AuthenticationProviderType | メッセージのデジタル署名を生成するのに使われる暗号化プロバイダのタイプを取得または設定します。 |
![]() ![]() ![]() ![]() | ConnectorType | 通常ではメッセージ キューによって設定されるメッセージ プロパティが、実際には送信元アプリケーションによって設定されたことを示す値を取得または設定します。 |
![]() | Container | Component を格納している IContainer を取得します。 ( Component から継承されます。) |
![]() | Site | Component の ISite を取得または設定します。 ( Component から継承されます。) |
![]() | UseTracing | メッセージが送信先キューに移動していく途中でメッセージをトレースするかどうかを示す値を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | CanRaiseEvents | コンポーネントがイベントを発生させることがきるかどうかを示す値を取得します。 ( Component から継承されます。) |
![]() | DesignMode | Component が現在デザイン モードかどうかを示す値を取得します。 ( Component から継承されます。) |
![]() | Events | Component に結び付けられているイベント ハンドラのリストを取得します。 ( Component から継承されます。) |

Message プロパティ

名前 | 説明 | |
---|---|---|
![]() | Documentation | DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | DocumentationElement | DocumentableItem のドキュメント要素を取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | ExtensibleAttributes | Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | Extensions | オーバーライドされます。 この Message に関連付けられている ServiceDescriptionFormatExtensionCollection を取得します。 |
![]() | Name | 項目の名前を取得または設定します。 ( NamedItem から継承されます。) |
![]() | Namespaces | ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。 ( DocumentableItem から継承されます。) |
![]() | Parts | Message に格納されている MessagePart オブジェクトのコレクションを取得します。 |
![]() | ServiceDescription | 現在の Message がメンバとして含まれている ServiceDescription を取得します。 |

Message プロパティ

名前 | 説明 | |
---|---|---|
![]() | HWnd | メッセージのウィンドウ ハンドルを取得または設定します。 |
![]() | LParam | メッセージの LParam フィールドを指定します。 |
![]() | Msg | メッセージの ID 番号を取得または設定します。 |
![]() | Result | メッセージの処理に応答して Windows に返される値を指定します。 |
![]() | WParam | メッセージの WParam フィールドを取得または設定します。 |

Message メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | Execute | オーバーライドされます。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

Message メソッド

名前 | 説明 | |
---|---|---|
![]() | Create | 新しい Message 構造体を作成します。 |
![]() | Equals | オーバーロードされます。 オーバーライドされます。 |
![]() | GetHashCode | オーバーライドされます。 このメンバは GetHashCode をオーバーライドします。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | op_Equality | 2 つの Message 構造体を比較し、それらの構造体が等しいかどうかを確認します。 |
![]() | op_Inequality | 2 つの Message 構造体を比較し、それらの構造体が等しくないかどうかを判断します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

Message メソッド

名前 | 説明 | |
---|---|---|
![]() | CreateObjRef | リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 ( MarshalByRefObject から継承されます。) |
![]() | Dispose | オーバーロードされます。 Component によって使用されているリソースを解放します。 ( Component から継承されます。) |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetLifetimeService | 対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | InitializeLifetimeService | 対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 ( Component から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Dispose | オーバーロードされます。 Component によって使用されているリソースを解放します。 ( Component から継承されます。) |
![]() | Finalize | Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 ( Component から継承されます。) |
![]() | GetService | Component またはその Container で提供されるサービスを表すオブジェクトを返します。 ( Component から継承されます。) |
![]() | MemberwiseClone | オーバーロードされます。 ( MarshalByRefObject から継承されます。) |

Message メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | FindPartByName | Parts プロパティによって返された MessagePartCollection を検索して、名前付きの MessagePart を返します。 |
![]() | FindPartsByName | Parts プロパティによって返された MessagePartCollection を検索して、指定されたインスタンスを格納している MessagePart 型の配列を返します。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

Message メソッド

名前 | 説明 | |
---|---|---|
![]() | Create | 新しい Message を作成します。 |
![]() | Equals | オーバーロードされます。 オーバーライドされます。 |
![]() | GetHashCode | オーバーライドされます。 |
![]() | GetLParam | LParam 値を取得し、取得した値をオブジェクトに変換します。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | オーバーライドされます。 |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

Message メンバ
Message データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | Message |

名前 | 説明 | |
---|---|---|
![]() | BuildEngine | タスクによって使用される IBuildEngine オブジェクトのインスタンスを取得または設定します。(Task から継承されます。) |
![]() | HostObject | タスクに関連付けられているホスト オブジェクトを取得または設定します。(Task から継承されます。) |
![]() | Importance | |
![]() | Log | タスク ログ メソッドを格納している TaskLoggingHelperExtension のインスタンスを取得します。(TaskExtension から継承されます。) |
![]() | Text |

名前 | 説明 | |
---|---|---|
![]() | HelpKeywordPrefix | リソース名からヘルプ キーワードを作成するために使用するプレフィックスを取得または設定します。(Task から継承されます。) |
![]() | TaskResources | タスクに関連付けられているカルチャ固有のリソースを取得または設定します。(Task から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | Execute | オーバーライドされます。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Message メンバ
Message データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | Create | 新しい Message 構造体を作成します。 |
![]() | Equals | オーバーロードされます。 オーバーライドされます。 |
![]() | GetHashCode | オーバーライドされます。 このメンバは GetHashCode をオーバーライドします。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | op_Equality | 2 つの Message 構造体を比較し、それらの構造体が等しいかどうかを確認します。 |
![]() | op_Inequality | 2 つの Message 構造体を比較し、それらの構造体が等しくないかどうかを判断します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Message メンバ
メッセージ キューのメッセージを定義するのに必要なプロパティへのアクセスを実現します。
Message データ型で公開されるメンバを以下の表に示します。



名前 | 説明 | |
---|---|---|
![]() ![]() ![]() ![]() ![]() ![]() | AttachSenderId | メッセージに差出人の ID を結び付ける必要があるかどうかを示す値を取得または設定します。 |
![]() | Authenticated | メッセージが認証されたかどうかを示す値を取得します。 |
![]() | AuthenticationProviderName | メッセージのデジタル署名を生成するのに使われる暗号化プロバイダの名前を取得または設定します。 |
![]() | AuthenticationProviderType | メッセージのデジタル署名を生成するのに使われる暗号化プロバイダのタイプを取得または設定します。 |
![]() ![]() ![]() ![]() | ConnectorType | 通常ではメッセージ キューによって設定されるメッセージ プロパティが、実際には送信元アプリケーションによって設定されたことを示す値を取得または設定します。 |
![]() | Container | Component を格納している IContainer を取得します。(Component から継承されます。) |
![]() | Site | Component の ISite を取得または設定します。(Component から継承されます。) |
![]() | UseTracing | メッセージが送信先キューに移動していく途中でメッセージをトレースするかどうかを示す値を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | CanRaiseEvents | コンポーネントがイベントを発生させることがきるかどうかを示す値を取得します。(Component から継承されます。) |
![]() | DesignMode | Component が現在デザイン モードかどうかを示す値を取得します。(Component から継承されます。) |
![]() | Events | Component に結び付けられているイベント ハンドラのリストを取得します。(Component から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | CreateObjRef | リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 (MarshalByRefObject から継承されます。) |
![]() | Dispose | オーバーロードされます。 Component によって使用されているリソースを解放します。 (Component から継承されます。) |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetLifetimeService | 対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | InitializeLifetimeService | 対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 (Component から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Dispose | オーバーロードされます。 Component によって使用されているリソースを解放します。 (Component から継承されます。) |
![]() | Finalize | Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 (Component から継承されます。) |
![]() | GetService | Component またはその Container で提供されるサービスを表すオブジェクトを返します。 (Component から継承されます。) |
![]() | MemberwiseClone | オーバーロードされます。 ( MarshalByRefObject から継承されます。) |


Message メンバ
XML Web サービスによって渡されるデータの抽象定義を提供します。このクラスは継承できません。
Message データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | Message |

名前 | 説明 | |
---|---|---|
![]() | Documentation | DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。(DocumentableItem から継承されます。) |
![]() | DocumentationElement | DocumentableItem のドキュメント要素を取得または設定します。(DocumentableItem から継承されます。) |
![]() | ExtensibleAttributes | Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。(DocumentableItem から継承されます。) |
![]() | Extensions | オーバーライドされます。 この Message に関連付けられている ServiceDescriptionFormatExtensionCollection を取得します。 |
![]() | Name | 項目の名前を取得または設定します。(NamedItem から継承されます。) |
![]() | Namespaces | ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。(DocumentableItem から継承されます。) |
![]() | Parts | Message に格納されている MessagePart オブジェクトのコレクションを取得します。 |
![]() | ServiceDescription | 現在の Message がメンバとして含まれている ServiceDescription を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | FindPartByName | Parts プロパティによって返された MessagePartCollection を検索して、名前付きの MessagePart を返します。 |
![]() | FindPartsByName | Parts プロパティによって返された MessagePartCollection を検索して、指定されたインスタンスを格納している MessagePart 型の配列を返します。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Message メンバ
Message データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | HWnd | メッセージのウィンドウ ハンドルを取得または設定します。 |
![]() | LParam | メッセージの LParam フィールドを指定します。 |
![]() | Msg | メッセージの ID 番号を取得または設定します。 |
![]() | Result | メッセージの処理に応答して Windows に返される値を指定します。 |
![]() | WParam | メッセージの WParam フィールドを取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | Create | 新しい Message を作成します。 |
![]() | Equals | オーバーロードされます。 オーバーライドされます。 |
![]() | GetHashCode | オーバーライドされます。 |
![]() | GetLParam | LParam 値を取得し、取得した値をオブジェクトに変換します。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | オーバーライドされます。 |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Message 構造体
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)


Message 構造体は、Windows が送信するメッセージをラップします。この構造体を使用して、メッセージをラップし、ディスパッチされるウィンドウ プロシージャにそのメッセージを割り当てることができます。
Message 構造体は直接は作成できません。Message 構造体を作成するには、Create メソッドを使用します。効率を高めるため、Message 構造体は、新しい構造体のインスタンスを作成する代わりに、プールされている既存の構造体を使用します。

WM_CUSTOMMSG の識別子を持つ Windows ベースのメッセージを作成して送信するコード例を次に示します。メッセージには、メッセージの送信先となる MsgWin という名前のメッセージ ウィンドウのハンドルが与えられます。メッセージには、WParam パラメータと LParam パラメータの値が含まれます。この例では、OnMouseMove メソッドの MouseEventArgs の e から取得した現在の x 座標および y 座標です。


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message 構造体
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)


Message 構造体は、Windows が送信するメッセージをラップします。この構造体を使用して、メッセージをラップし、ディスパッチされるウィンドウ プロシージャにそのメッセージを割り当てることができます。この構造体を使用すると、システムからアプリケーションやコントロールに送られるメッセージに関する情報を取得することもできます。
Message は直接作成できません。代わりに、Create メソッドを呼び出します。効率向上のため、Message は、新しいメッセージをインスタンス化する代わりに、可能な限り既存の Message のプールを使用します。ただし、プール内に使用できる Message がない場合は、新しいメッセージがインスタンス化されます。

WndProc メソッドをオーバーライドして、Message で示されるオペレーティング システム メッセージを処理する方法を次のコード例に示します。この例の場合、WM_ACTIVEAPP オペレーティング システム メッセージは、別のアプリケーションがどのタイミングでアクティブになったかを判定するために処理されます。使用できる Message.Msg、Message.LParam、および Message.WParam の値については、MSDN ライブラリから入手できるプラットフォーム SDK のリファレンスを参照してください。実際の定数値は、プラットフォーム SDK (コア SDK セクション) のダウンロードに含まれている Windows.h ヘッダー ファイルに記載されています。これは MSDN からも入手できます。
Imports System Imports System.Drawing Imports System.Windows.Forms Namespace csTempWindowsApplication1 Public Class Form1 Inherits System.Windows.Forms.Form ' Constant value was found in the "windows.h" header file. Private Const WM_ACTIVATEAPP As Integer = &H1C Private appActive As Boolean = True <STAThread()> _ Shared Sub Main() Application.Run(New Form1()) End Sub 'Main Public Sub New() MyBase.New() Me.Size = New System.Drawing.Size(300, 300) Me.Text = "Form1" Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 18.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) End Sub Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) ' Paint a string in different styles depending on whether the ' application is active. If (appActive) Then e.Graphics.FillRectangle(SystemBrushes.ActiveCaption, 20, 20, 260, 50) e.Graphics.DrawString("Application is active", Me.Font, SystemBrushes.ActiveCaptionText, 20, 20) Else e.Graphics.FillRectangle(SystemBrushes.InactiveCaption, 20, 20, 260, 50) e.Graphics.DrawString("Application is Inactive", Me.Font, SystemBrushes.ActiveCaptionText, 20, 20) End If End Sub <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _ Protected Overrides Sub WndProc(ByRef m As Message) ' Listen for operating system messages Select Case (m.Msg) ' The WM_ACTIVATEAPP message occurs when the application ' becomes the active application or becomes inactive. Case WM_ACTIVATEAPP ' The WParam value identifies what is occurring. appActive = (m.WParam.ToInt32() <> 0) ' Invalidate to get new text painted. Me.Invalidate() End Select MyBase.WndProc(m) End Sub End Class End Namespace
using System; using System.Drawing; using System.Windows.Forms; namespace csTempWindowsApplication1 { public class Form1 : System.Windows.Forms.Form { // Constant value was found in the "windows.h" header file. private const int WM_ACTIVATEAPP = 0x001C; private bool appActive = true; [STAThread] static void Main() { Application.Run(new Form1()); } public Form1() { this.Size = new System.Drawing.Size(300 ,300); this.Text = "Form1"; this.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); } protected override void OnPaint(PaintEventArgs e) { // Paint a string in different styles depending on whether the // application is active. if (appActive) { e.Graphics.FillRectangle(SystemBrushes.ActiveCaption,20,20,260,50); e.Graphics.DrawString("Application is active", this.Font, SystemBrushes.ActiveCaptionText, 20,20); } else { e.Graphics.FillRectangle(SystemBrushes.InactiveCaption,20,20,260 ,50); e.Graphics.DrawString("Application is Inactive", this.Font, SystemBrushes.ActiveCaptionText, 20,20); } } [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")] protected override void WndProc(ref Message m) { // Listen for operating system messages. switch (m.Msg) { // The WM_ACTIVATEAPP message occurs when the application // becomes the active application or becomes inactive. case WM_ACTIVATEAPP: // The WParam value identifies what is occurring. appActive = (((int)m.WParam != 0)); // Invalidate to get new text painted. this.Invalidate(); break; } base.WndProc(ref m); } } }
using namespace System; using namespace System::Drawing; using namespace System::Windows::Forms; using namespace System::Security::Permissions; namespace csTempWindowsApplication1 { public ref class Form1: public System::Windows::Forms::Form { private: // Constant value was found in the "windows.h" header file. static const Int32 WM_ACTIVATEAPP = 0x001C; Boolean appActive; public: Form1() { appActive = true; this->Size = System::Drawing::Size( 300, 300 ); this->Text = "Form1"; this->Font = gcnew System::Drawing::Font( "Microsoft Sans Serif",18.0F,System::Drawing::FontStyle::Bold,System::Drawing::GraphicsUnit::Point,((System::Byte)(0)) ); } protected: virtual void OnPaint( PaintEventArgs^ e ) override { // Paint a string in different styles depending on whether the // application is active. if ( appActive ) { e->Graphics->FillRectangle( SystemBrushes::ActiveCaption, 20, 20, 260, 50 ); e->Graphics->DrawString( "Application is active", this->Font, SystemBrushes::ActiveCaptionText, 20, 20 ); } else { e->Graphics->FillRectangle( SystemBrushes::InactiveCaption, 20, 20, 260, 50 ); e->Graphics->DrawString( "Application is Inactive", this->Font, SystemBrushes::ActiveCaptionText, 20, 20 ); } } [SecurityPermission(SecurityAction::Demand, Flags=SecurityPermissionFlag::UnmanagedCode)] virtual void WndProc( Message% m ) override { // Listen for operating system messages. switch ( m.Msg ) { case WM_ACTIVATEAPP: // The WParam value identifies what is occurring. appActive = (int)m.WParam != 0; // Invalidate to get new text painted. this->Invalidate(); break; } Form::WndProc( m ); } }; } [STAThread] int main() { Application::Run( gcnew csTempWindowsApplication1::Form1 ); }
package JSLTempWindowsApplication1; import System.*; import System.Drawing.*; import System.Windows.Forms.*; import System.Security.Permissions.*; public class Form1 extends System.Windows.Forms.Form { // Constant value was found in the "windows.h" header file. private final int WM_ACTIVATEAPP = 0x1C; private boolean appActive = true; /** @attribute STAThread() */ public static void main(String[] args) { Application.Run(new Form1()); } //main public Form1() { this.set_Size(new System.Drawing.Size(300, 300)); this.set_Text("Form1"); this.set_Font(new System.Drawing.Font("Microsoft Sans Serif", 18, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (ubyte)0)); } //Form1 protected void OnPaint(PaintEventArgs e) { // Paint a string in different styles depending on whether the // application is active. if (appActive) { e.get_Graphics().FillRectangle(SystemBrushes.get_ActiveCaption(), 20, 20, 260, 50); e.get_Graphics().DrawString("Application is active", this.get_Font(), SystemBrushes.get_ActiveCaptionText() , 20, 20); } else { e.get_Graphics().FillRectangle(SystemBrushes.get_InactiveCaption(), 20, 20, 260, 50); e.get_Graphics().DrawString("Application is Inactive", this.get_Font(), SystemBrushes.get_ActiveCaptionText() , 20, 20); } } //OnPaint /** @attribute SecurityPermissionAttribute(SecurityAction.Demand, Flags=SecurityPermissionFlag.UnmanagedCode) */ protected void WndProc(/** @ref */Message m) { // Listen for operating system messages. switch (m.get_Msg()) { // The WM_ACTIVATEAPP message occurs when the application // becomes the active application or becomes inactive. case WM_ACTIVATEAPP: // The WParam value identifies what is occurring. appActive = m.get_WParam().ToInt32() != 0; // Invalidate to get new text painted. this.Invalidate(); break; } super.WndProc(m); } //WndProc } //Form1


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Message
出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2021/04/22 07:46 UTC 版)
「Lost in Time」の記事における「Message」の解説
今までbless4の一員として活動していましたが……今回、初ソロアルバムをリリースする事になり、ひとり(ソロ)として歩む事への不安がいっぱいありました。しかし、それ以上に目には見えない素晴らしい経験をする事が出来ました。 今の時代、若者に限らず多くの人が将来に不安を持ち、人生に目標を持つ事が出来ないでいます。 静かな時間の中で、この『Lost in Time』を聴いて…自分の大切さを知り、前向きな夢と希望を見つけ、明日への元気を取り戻してくれたら嬉しいです。 — AKINO、『Lost in Time』ブックレットより
※この「Message」の解説は、「Lost in Time」の解説の一部です。
「Message」を含む「Lost in Time」の記事については、「Lost in Time」の概要を参照ください。
- Messageのページへのリンク