OperationMessageCollection.Item プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As OperationMessageCollection Dim index As Integer Dim value As OperationMessage value = instance(index) instance(index) = value
public: property OperationMessage^ default [int] { OperationMessage^ get (int index); void set (int index, OperationMessage^ value); }
/** @property */ public OperationMessage get_Item (int index) /** @property */ public void set_Item (int index, OperationMessage value)
プロパティ値
OperationMessage。

' Get the operation message for the Add operation. Dim myOperationMessage As OperationMessage = _ myOperationMessageCollection.Item(0) Dim myInputOperationMessage As OperationMessage = _ CType(New OperationInput(), OperationMessage) Dim myXmlQualifiedName As _ New XmlQualifiedName("AddSoapIn", myDescription.TargetNamespace) myInputOperationMessage.Message = myXmlQualifiedName Dim myCollection(myOperationMessageCollection.Count -1 ) _ As OperationMessage myOperationMessageCollection.CopyTo(myCollection, 0) Console.WriteLine("Operation name(s) :") Dim i As Integer For i = 0 To myCollection.Length - 1 Console.WriteLine(" " & myCollection(i).Operation.Name) Next i ' Add the OperationMessage to the collection. myOperationMessageCollection.Add(myInputOperationMessage) DisplayFlowInputOutput(myOperationMessageCollection, "Add") If myOperationMessageCollection.Contains(myOperationMessage) _ = True Then Dim myIndex As Integer = _ myOperationMessageCollection.IndexOf(myOperationMessage) Console.WriteLine(" The index of the Add operation " & _ "message in the collection is : " & myIndex.ToString()) End If
// Get the operation message for the Add operation. OperationMessage myOperationMessage = myOperationMessageCollection[0]; OperationMessage myInputOperationMessage = (OperationMessage) new OperationInput(); XmlQualifiedName myXmlQualifiedName = new XmlQualifiedName( "AddSoapIn", myDescription.TargetNamespace); myInputOperationMessage.Message = myXmlQualifiedName; OperationMessage[] myCollection = new OperationMessage[myOperationMessageCollection.Count]; myOperationMessageCollection.CopyTo(myCollection, 0); Console.WriteLine("Operation name(s) :"); for (int i = 0; i < myCollection.Length ; i++) { Console.WriteLine(" " + myCollection[i].Operation.Name); } // Add the OperationMessage to the collection. myOperationMessageCollection.Add(myInputOperationMessage); DisplayFlowInputOutput(myOperationMessageCollection, "Add"); if(myOperationMessageCollection.Contains(myOperationMessage) == true ) { int myIndex = myOperationMessageCollection.IndexOf(myOperationMessage); Console.WriteLine(" The index of the Add operation " + "message in the collection is : " + myIndex); }
// Get the operation message for the Add operation. OperationMessage^ myOperationMessage = myOperationMessageCollection[ 0 ]; OperationMessage^ myInputOperationMessage = dynamic_cast<OperationMessage^>(gcnew OperationInput); XmlQualifiedName^ myXmlQualifiedName = gcnew XmlQualifiedName( "AddSoapIn",myDescription->TargetNamespace ); myInputOperationMessage->Message = myXmlQualifiedName; array<OperationMessage^>^myCollection = gcnew array<OperationMessage^>(myOperationMessageCollection->Count); myOperationMessageCollection->CopyTo( myCollection, 0 ); Console::WriteLine( "Operation name(s) :" ); for ( int i = 0; i < myCollection->Length; i++ ) { Console::WriteLine( " {0}", myCollection[ i ]->Operation->Name ); } // Add the OperationMessage to the collection. myOperationMessageCollection->Add( myInputOperationMessage ); DisplayFlowInputOutput( myOperationMessageCollection, "Add" ); if ( myOperationMessageCollection->Contains( myOperationMessage ) == true ) { int myIndex = myOperationMessageCollection->IndexOf( myOperationMessage ); Console::WriteLine( " The index of the Add operation message in the collection is : {0}", myIndex ); }
// Get the operation message for the Add operation. OperationMessage myOperationMessage = myOperationMessageCollection. get_Item(0); OperationMessage myInputOperationMessage = (OperationMessage) new OperationInput(); XmlQualifiedName myXmlQualifiedName = new XmlQualifiedName( "AddSoapIn", myDescription.get_TargetNamespace()); myInputOperationMessage.set_Message(myXmlQualifiedName); OperationMessage myCollection[] = new OperationMessage[myOperationMessageCollection.get_Count()]; myOperationMessageCollection.CopyTo(myCollection, 0); Console.WriteLine("Operation name(s) :"); for (int i = 0; i < myCollection.get_Length(); i++) { Console.WriteLine(" " + myCollection[i].get_Operation(). get_Name()); } // Add the OperationMessage to the collection. myOperationMessageCollection.Add(myInputOperationMessage); DisplayFlowInputOutput(myOperationMessageCollection, "Add"); if (myOperationMessageCollection.Contains(myOperationMessage) == true) { int myIndex = myOperationMessageCollection. IndexOf(myOperationMessage); Console.WriteLine(" The index of the Add operation " + "message in the collection is : " + myIndex); }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からOperationMessageCollection.Item プロパティを検索する場合は、下記のリンクをクリックしてください。

- OperationMessageCollection.Item プロパティのページへのリンク