Share via


ServiceDescriptionCollection.Item[] プロパティ

定義

渡されたパラメーターによって指定された ServiceDescription インスタンスを取得または設定します。

オーバーロード

Item[Int32]

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

Item[String]

ServiceDescription プロパティで指定された TargetNamespace を取得します。

Item[Int32]

ソース:
ServiceDescriptions.cs
ソース:
ServiceDescriptions.cs
ソース:
ServiceDescriptions.cs

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

public:
 property System::Web::Services::Description::ServiceDescription ^ default[int] { System::Web::Services::Description::ServiceDescription ^ get(int index); void set(int index, System::Web::Services::Description::ServiceDescription ^ value); };
public System.Web.Services.Description.ServiceDescription this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Description.ServiceDescription with get, set
Default Public Property Item(index As Integer) As ServiceDescription

パラメーター

index
Int32

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

プロパティ値

指定したインデックスにある ServiceDescription の値。

// Display element properties in the collection using 
// the Item property.
for ( int i = 0; i < myCollection->Count; i++ )
   Console::WriteLine( myCollection[ i ]->TargetNamespace );
// Display element properties in collection using 'Item' property.
for(int i=0; i<myCollection.Count; i++)
{
   Console.WriteLine(myCollection[i].TargetNamespace);
}
' Display element properties in collection using 'Item' property.
Dim i As Integer
For i = 0 To myCollection.Count - 1
   Console.WriteLine(myCollection(i).TargetNamespace)
Next i

適用対象

Item[String]

ソース:
ServiceDescriptions.cs
ソース:
ServiceDescriptions.cs
ソース:
ServiceDescriptions.cs

ServiceDescription プロパティで指定された TargetNamespace を取得します。

public:
 property System::Web::Services::Description::ServiceDescription ^ default[System::String ^] { System::Web::Services::Description::ServiceDescription ^ get(System::String ^ ns); };
public System.Web.Services.Description.ServiceDescription this[string ns] { get; }
member this.Item(string) : System.Web.Services.Description.ServiceDescription
Default Public ReadOnly Property Item(ns As String) As ServiceDescription

パラメーター

ns
String

返された ServiceDescription の名前空間。

プロパティ値

名前空間プロパティで指定された ServiceDescription

// Get a ServiceDescription in the collection using 
// the Item property.
ServiceDescription^ myServiceDescription = myCollection[ "http://tempuri1.org/" ];
// Get a 'ServiceDescription' object in collection using 'Item'.
ServiceDescription myServiceDescription = myCollection["http://tempuri1.org/"];
' Get a 'ServiceDescription' object in collection using 'Item'.
Dim myServiceDescription As ServiceDescription = myCollection("http://tempuri1.org/")

適用対象