ServiceDescriptionFormatExtensionCollection.IndexOf-Methode
Sucht nach der angegebenen ServiceDescriptionFormatExtension und gibt den nullbasierten Index der ersten Instanz in der Auflistung zurück.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Function IndexOf ( _
extension As Object _
) As Integer
'Usage
Dim instance As ServiceDescriptionFormatExtensionCollection
Dim extension As Object
Dim returnValue As Integer
returnValue = instance.IndexOf(extension)
public int IndexOf (
Object extension
)
public:
int IndexOf (
Object^ extension
)
public int IndexOf (
Object extension
)
public function IndexOf (
extension : Object
) : int
Parameter
- extension
Die ServiceDescriptionFormatExtension, nach der in der Auflistung gesucht werden soll.
Rückgabewert
Eine 32-Bit-Ganzzahl mit Vorzeichen.
Beispiel
' Get index of a 'myFormatExtension' object in collection.
Console.WriteLine("Index of 'myFormatExtensionObject' is " + _
"{0} in collection.", myCollection.IndexOf(myFormatExtensionObject).ToString())
// Get index of a 'myFormatExtension' object in collection.
Console.WriteLine("Index of 'myFormatExtensionObject' is "+
"{0} in collection.",
myCollection.IndexOf(myFormatExtensionObject).ToString());
// Get index of a 'myFormatExtension' object in collection.
Console::WriteLine( "Index of 'myFormatExtensionObject' is {0} in collection.", myCollection->IndexOf( myFormatExtensionObject ) );
// Get index of a 'myFormatExtension' object in collection.
Console.WriteLine("Index of 'myFormatExtensionObject' is " +
"{0} in collection.", System.Convert.ToString(myCollection.
IndexOf(myFormatExtensionObject)));
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
ServiceDescriptionFormatExtensionCollection-Klasse
ServiceDescriptionFormatExtensionCollection-Member
System.Web.Services.Description-Namespace