다음을 통해 공유


DiscoveryClientDocumentCollection.Values 속성

정의

ICollection에 있는 모든 값이 포함된 DiscoveryClientDocumentCollection 개체를 가져옵니다.

public:
 property System::Collections::ICollection ^ Values { System::Collections::ICollection ^ get(); };
public System.Collections.ICollection Values { get; }
member this.Values : System.Collections.ICollection
Public ReadOnly Property Values As ICollection

속성 값

ICollection의 값을 포함하는 DiscoveryClientDocumentCollection입니다.

예제

다음 코드 예제에 포함 된 값을 출력 합니다 DiscoveryClientDocumentCollection 콘솔.

// 'Values' in the collection are retrieved.
ICollection^ myCollection1 = myDiscoveryClientDocumentCollection->Values;
array<Object^>^myObjectCollection1 =
   gcnew array<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 ] );
// '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]);
' '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

적용 대상

추가 정보