EventDescriptorCollection::IList::IndexOf Method (Object^)

 

Determines the index of a specific item in the collection.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

private:
virtual int IndexOf(
	Object^ value
) sealed = IList::IndexOf

Parameters

value
Type: System::Object^

The Object to locate in the collection.

Return Value

Type: System::Int32

The index of value if found in the list; otherwise, -1.

System_CAPS_noteNote

The HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

.NET Framework
Available since 1.1
Return to top
Show: