ServiceDescriptionCollection.Item プロパティ
渡されたパラメータによって指定された ServiceDescription インスタンスを取得または設定します。
[C#] C# では、このプロパティは ServiceDescriptionCollection クラスのインデクサになります。
オーバーロードの一覧
指定の 0 から始まるインデックス番号に対応する ServiceDescription の値を取得または設定します。
[Visual Basic] Overloads Public Default Property Item(Integer) As ServiceDescription
[C++] public: __property ServiceDescription* get_Item(int);
public: __property void set_Item(int, ServiceDescription*);
[JScript] ServiceDescriptionCollection.Item (int)
TargetNamespace プロパティによって指定された ServiceDescription を取得します。
[Visual Basic] Overloads Public Default ReadOnly Property Item(String) As ServiceDescription
[C++] public: __property ServiceDescription* get_Item(String*);
使用例
[Visual Basic, C#, C++] メモ ここでは、Item プロパティ (ServiceDescriptionCollection インデクサ) のオーバーロード形式のうちの 1 つだけについて、使用例を示します。その他の例については、各オーバーロード形式のトピックを参照してください。
' Get a ServiceDescription from the collection using
' the Item property.
Dim myServiceDescription As ServiceDescription = _
myCollection("http://tempuri1.org/")
[C#]
// Get a ServiceDescription from the collection using
// the Item property.
ServiceDescription myServiceDescription =
myCollection["http://tempuri1.org/"];
[C++]
// Get a ServiceDescription in the collection using
// the Item property.
ServiceDescription* myServiceDescription =
myCollection->Item[S"http://tempuri1.org/"];
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
参照
ServiceDescriptionCollection クラス | ServiceDescriptionCollection メンバ | System.Web.Services.Description 名前空間