Operation.ParameterOrder プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ParameterOrderString 内に含まれる要素の配列を取得または設定します。
public:
property cli::array <System::String ^> ^ ParameterOrder { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] ParameterOrder { get; set; }
member this.ParameterOrder : string[] with get, set
Public Property ParameterOrder As String()
プロパティ値
- String[]
MessagePart インスタンスの名前の配列。
例
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 = null ;
Operation myOperation = new Operation();
myDescription = ServiceDescription.Read("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 += myMessagePart[j].Name;
myString += " " ;
}
}
// Set the ParameterOrderString equal to the list of
// message part names.
myOperation.ParameterOrderString = myString;
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++;
}
Dim myString As String = Nothing
Dim myOperation As New Operation()
myDescription = ServiceDescription.Read("Operation_2_Input_VB.wsdl")
Dim myMessage(myDescription.Messages.Count) As Message
' Copy the messages from the service description.
myDescription.Messages.CopyTo(myMessage, 0)
Dim i As Integer
For i = 0 To myDescription.Messages.Count - 1
Dim myMessagePart(myMessage(i).Parts.Count) As MessagePart
' Copy the message parts into a MessagePart.
myMessage(i).Parts.CopyTo(myMessagePart, 0)
Dim j As Integer
For j = 0 To (myMessage(i).Parts.Count) - 1
myString += myMessagePart(j).Name
myString += " "
Next j
Next i
' Set the ParameterOrderString equal to the list of
' message part names.
myOperation.ParameterOrderString = myString
Dim myString1 As String() = myOperation.ParameterOrder
Dim k As Integer = 0
Console.WriteLine("The list of message part names is as follows:")
While k < 5
Console.WriteLine(myString1(k))
k += 1
End While
注釈
この配列の要素はプロパティの ParameterOrderString 要素と同じですが、スペースで区切られた文字列ではなく配列に格納されます。