Freigeben über


DiscoveryClientDocumentCollection.Values-Eigenschaft

Ruft ein System.Collections.ICollection-Objekt mit allen Werten aus der DiscoveryClientDocumentCollection ab.

Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public ReadOnly Property Values As ICollection
'Usage
Dim instance As DiscoveryClientDocumentCollection
Dim value As ICollection

value = instance.Values
public ICollection Values { get; }
public:
property ICollection^ Values {
    ICollection^ get ();
}
/** @property */
public ICollection get_Values ()
public function get Values () : ICollection

Eigenschaftenwert

Eine ICollection, die die Werte in DiscoveryClientDocumentCollection enthält.

Beispiel

Im folgenden Codebeispiel werden die Werte innerhalb der DiscoveryClientDocumentCollection an die Konsole ausgegeben.

' '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 
// '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.
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 ] );

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

DiscoveryClientDocumentCollection-Klasse
DiscoveryClientDocumentCollection-Member
System.Web.Services.Discovery-Namespace
Values