IndexOf(IDataObject):Int32

Returns the position for a data object in the collection.

This method searches for the indicated data object in the collection. In doing so, the data object is only searched for in the direct child data objects.

If the data object is not found, then the value -1 is returned, otherwise the position (zero-based) of the data object.

Return type: System.Int32

Parameter

dataObject

Type: Onion.Client.IDataObject

This parameter is the data object for which to be searched.