This documentation is archived and is not being maintained.

Operation::ParameterOrder Property

Gets or sets an array of the elements contained in the ParameterOrderString.

Namespace:  System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
property array<String^>^ ParameterOrder {
	array<String^>^ get ();
	void set (array<String^>^ value);
}

Property Value

Type: array<System::String>
An array of names of MessagePart instances.

The elements of this array are identical to those of the ParameterOrderString property, but housed in an array rather than a space-delimited string.

String^ myString = nullptr;
Operation^ myOperation = gcnew Operation;
myDescription = ServiceDescription::Read( "Operation_2_Input_CS.wsdl" );
array<Message^>^myMessage = gcnew array<Message^>(myDescription->Messages->Count);

// Copy the messages from the service description.
myDescription->Messages->CopyTo( myMessage, 0 );
for ( int i = 0; i < myDescription->Messages->Count; i++ )
{
   array<MessagePart^>^myMessagePart = gcnew array<MessagePart^>(myMessage[ i ]->Parts->Count);

   // Copy the message parts into a MessagePart.
   myMessage[ i ]->Parts->CopyTo( myMessagePart, 0 );
   for ( int j = 0; j < myMessage[ i ]->Parts->Count; j++ )
   {
      myString = String::Concat( myString, myMessagePart[ j ]->Name, " " );
   }
}

// message part names.
myOperation->ParameterOrderString = myString;
array<String^>^myString1 = myOperation->ParameterOrder;
int k = 0;
Console::WriteLine( "The list of message part names is as follows:" );
while ( k < 5 )
{
   Console::WriteLine( myString1[ k ] );
   k++;
}
String* myString = 0 ;
Operation* myOperation = new Operation();
myDescription = ServiceDescription::Read(S"Operation_2_Input_CS.wsdl");
Message* myMessage[] = new Message*[ myDescription->Messages->Count ] ;

// Copy the messages from the service description.
myDescription->Messages->CopyTo( myMessage, 0 );
for( int i = 0 ; i < myDescription->Messages->Count; i++ )
{
   MessagePart* myMessagePart[] =
      new MessagePart*[ myMessage[i]->Parts->Count ];

   // Copy the message parts into a MessagePart.
   myMessage[i]->Parts->CopyTo( myMessagePart, 0 );
   for( int j = 0 ; j < myMessage[i]->Parts->Count; j++ )
   {
      myString = String::Concat( myString, myMessagePart[j]->Name, S" " );
   }
}
// Set the ParameterOrderString equal to the list of
// message part names.
myOperation->ParameterOrderString = myString;
String* myString1[] = myOperation->ParameterOrder;
int k = 0 ;
Console::WriteLine(S"The list of message part names is as follows:");
while( k<5 )
{
   Console::WriteLine( myString1[k] );
   k++;
}

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: