ServiceDescriptionFormatExtensionCollection::IndexOf Method (Object^)

 

Searches for the specified ServiceDescriptionFormatExtension and returns the zero-based index of the first instance with the collection.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
int IndexOf(
	Object^ extension
)

Parameters

extension
Type: System::Object^

The ServiceDescriptionFormatExtension for which to search in the collection.

Return Value

Type: System::Int32

The zero-based index of the specified ServiceDescriptionFormatExtension, or -1 if the element was not found in the collection.

// Get index of a 'myFormatExtension' object in collection.
Console::WriteLine( "Index of 'myFormatExtensionObject' is {0} in collection.", myCollection->IndexOf( myFormatExtensionObject ) );

.NET Framework
Available since 1.1
Return to top
Show: