DiscoveryClientDocumentCollection 内のすべての値を保持している 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;
プロパティ値
DiscoveryClientDocumentCollection 内の値を格納している ICollection 。
使用例
[Visual Basic, C#, C++] DiscoveryClientDocumentCollection 内の値をコンソールに出力するコード例を次に示します。
' 'Values' in the collection are retrieved.
Dim myCollection1 As ICollection = myDiscoveryClientDocumentCollection.Values
Dim myObjectCollection1(myDiscoveryClientDocumentCollection.Count-1) 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#]
// 'Values' in the collection are retrieved.
ICollection myCollection1 = myDiscoveryClientDocumentCollection.Values;
object[] myObjectCollection1 =
new object[myDiscoveryClientDocumentCollection.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++]
// 'Values' in the collection are retrieved.
ICollection* myCollection1 = myDiscoveryClientDocumentCollection->Values;
Object* myObjectCollection1[] = new Object*[myDiscoveryClientDocumentCollection->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 ファミリ
参照
DiscoveryClientDocumentCollection クラス | DiscoveryClientDocumentCollection メンバ | System.Web.Services.Discovery 名前空間 | Values