MessagePart.Message Property
.NET Framework 3.0
Gets the Message of which the MessagePart is a member.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
The following example demonstrates a use of the Message property.
// Get the message part collection for each message. for ( int i = 0; i < myMessageCollection->Count; ++i ) { Console::WriteLine( "Message : {0}", myMessageCollection[ i ]->Name ); // Get the message part collection. MessagePartCollection^ myMessagePartCollection = myMessageCollection[ i ]->Parts; // Display the part collection. for ( int k = 0; k < myMessagePartCollection->Count; k++ ) { Console::WriteLine( "\t Part Name : {0}", myMessagePartCollection[ k ]->Name ); Console::WriteLine( "\t Message Name : {0}", myMessagePartCollection[ k ]->Message->Name ); } Console::WriteLine( "" ); }
// Get the message part collection for each message.
for (int i = 0; i < myMessageCollection.get_Count(); ++i) {
Console.WriteLine("Message : "
+ myMessageCollection.get_Item(i).get_Name());
// Get the message part collection.
MessagePartCollection myMessagePartCollection =
myMessageCollection.get_Item(i).get_Parts();
// Display the part collection.
for (int k = 0; k < myMessagePartCollection.get_Count(); k++) {
Console.WriteLine("\t Part Name : "
+ myMessagePartCollection.get_Item(k).get_Name());
Console.WriteLine("\t Message Name : "
+ myMessagePartCollection.get_Item(k).get_Message().
get_Name());
}
Console.WriteLine("");
}
Windows 98, Windows Server 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
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: