DiscoveryClientReferenceCollection 内のすべての値を保持している System.Collections.ICollection オブジェクトを取得します。
Public ReadOnly Property Values As ICollection
[C#]
public ICollection Values {get;}
[C++]
public: __property ICollection* get_Values();
[JScript]
public function get Values() : ICollection;
プロパティ値
DiscoveryClientReferenceCollection 内の値を格納している ICollection 。
使用例
' Retrieve the values in the collection.
Dim myCollection1 As ICollection = myDiscoveryClientReferenceCollection.Values
Dim myObjectCollection1(myDiscoveryClientReferenceCollection.Count) As Object
myCollection1.CopyTo(myObjectCollection1, 0)
Console.WriteLine("The objects in the collection are:")
For iIndex = 0 To myObjectCollection1.Length - 1
Console.WriteLine(myObjectCollection1(iIndex))
Next iIndex
[C#]
// Retrieve the values in the collection.
ICollection myCollection1 = myDiscoveryClientReferenceCollection.Values;
object[] myObjectCollection1 =
new object[myDiscoveryClientReferenceCollection.Count];
myCollection1.CopyTo(myObjectCollection1, 0);
Console.WriteLine("The objects in the collection are:");
for (int iIndex=0; iIndex < myObjectCollection1.Length; iIndex++)
{
Console.WriteLine(myObjectCollection1[iIndex]);
}
[C++]
// Retrieve the values in the collection.
ICollection* myCollection1 = myDiscoveryClientReferenceCollection->Values;
Object* myObjectCollection1[] =
new Object*[myDiscoveryClientReferenceCollection->Count];
myCollection1->CopyTo(myObjectCollection1, 0);
Console::WriteLine(S"The objects in the collection are:");
for (int iIndex=0; iIndex < myObjectCollection1->Length; iIndex++) {
Console::WriteLine(myObjectCollection1->Item[iIndex]);
}
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
DiscoveryClientReferenceCollection クラス | DiscoveryClientReferenceCollection メンバ | System.Web.Services.Discovery 名前空間