OperationMessageCollection.Item プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > OperationMessageCollection.Item プロパティの意味・解説 

OperationMessageCollection.Item プロパティ

指定した 0 から始まるインデックス番号にある OperationMessage の値を取得または設定します

名前空間: System.Web.Services.Description
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public Default Property
 Item ( _
    index As Integer _
) As OperationMessage
Dim instance As OperationMessageCollection
Dim index As Integer
Dim value As OperationMessage

value = instance(index)

instance(index) = value
public OperationMessage this [
    int index
] { get; set; }
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)

パラメータ

index

変更または返される値を持つ OperationMessage に対応する、0 から始まるインデックス番号

プロパティ
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);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OperationMessageCollection クラス
OperationMessageCollection メンバ
System.Web.Services.Description 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からOperationMessageCollection.Item プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からOperationMessageCollection.Item プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からOperationMessageCollection.Item プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

OperationMessageCollection.Item プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



OperationMessageCollection.Item プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS