This documentation is archived and is not being maintained.
ServiceDescriptionFormatExtensionCollection.IndexOf Method
.NET Framework 1.1
Searches for the specified ServiceDescriptionFormatExtension and returns the zero-based index of the first instance with the collection.
[Visual Basic] Public Function IndexOf( _ ByVal extension As Object _ ) As Integer [C#] public int IndexOf( object extension ); [C++] public: int IndexOf( Object* extension ); [JScript] public function IndexOf( extension : Object ) : int;
Parameters
- extension
- The ServiceDescriptionFormatExtension for which to search in the collection.
Return Value
A 32-bit signed integer.
Example
[Visual Basic] ' Get index of a 'myFormatExtension' object in collection. Console.WriteLine("Index of 'myFormatExtensionObject' is " + _ "{0} in collection.", myCollection.IndexOf(myFormatExtensionObject).ToString()) [C#] // Get index of a 'myFormatExtension' object in collection. Console.WriteLine("Index of 'myFormatExtensionObject' is "+ "{0} in collection.", myCollection.IndexOf(myFormatExtensionObject).ToString()); [C++] // Get index of a 'myFormatExtension' object in collection. Console::WriteLine(S"Index of 'myFormatExtensionObject' is {0} in collection.", __box(myCollection->IndexOf(myFormatExtensionObject)));
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ServiceDescriptionFormatExtensionCollection Class | ServiceDescriptionFormatExtensionCollection Members | System.Web.Services.Description Namespace
Show: