ESRI.ArcGIS.ADF.Web.UI.WebControls
Remove(Control,String) Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > CallbackResultCollection Class > Remove Method : Remove(Control,String) Method




control
Control to search for in the CallbackResult collection.
eventArg
EventArg values to search for in the CallbackResult collection: one of "content", "innercontent", "javasript" and "image".
Removes CallbackResult objects with a specific control and event argument from the collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Remove( _
   ByVal control As Control, _
   ByVal eventArg As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As CallbackResultCollection
Dim control As Control
Dim eventArg As String
 
instance.Remove(control, eventArg)
C# 
public void Remove( 
   Control control,
   string eventArg
)

Parameters

control
Control to search for in the CallbackResult collection.
eventArg
EventArg values to search for in the CallbackResult collection: one of "content", "innercontent", "javasript" and "image".

Remarks

This method removes all CallbackResult objects in the collection with the control reference and EventArg values passed in. If multiple CallbackResults objects have the matching reference to the control (in the Control property) and EventArg, they will all be removed. This method will not remove a CallbackResult object unless it has a reference to the control. If the CallbackResult was constructed with the control ID and type rather than control reference, it will not be found and hence will not be removed.

See Also

© 2010 All Rights Reserved.