Breyta

Deila með


DataBindingCollection.Remove Method

Definition

Removes a DataBinding object from the DataBindingCollection collection.

Overloads

Remove(String)

Removes the DataBinding object associated with the specified property name from the DataBindingCollection collection and adds it to the RemovedBindings collection.

Remove(DataBinding)

Removes the specified DataBinding object from the DataBindingCollection collection and adds it to the RemovedBindings collection.

Remove(String, Boolean)

Removes the DataBinding object, associated with the specified property name, from the DataBindingCollection collection and controls whether to add the binding to the RemovedBindings list.

Remove(String)

Removes the DataBinding object associated with the specified property name from the DataBindingCollection collection and adds it to the RemovedBindings collection.

public:
 void Remove(System::String ^ propertyName);
public void Remove (string propertyName);
member this.Remove : string -> unit
Public Sub Remove (propertyName As String)

Parameters

propertyName
String

The property name associated with the DataBinding to be removed.

Applies to

Remove(DataBinding)

Removes the specified DataBinding object from the DataBindingCollection collection and adds it to the RemovedBindings collection.

public:
 void Remove(System::Web::UI::DataBinding ^ binding);
public void Remove (System.Web.UI.DataBinding binding);
member this.Remove : System.Web.UI.DataBinding -> unit
Public Sub Remove (binding As DataBinding)

Parameters

binding
DataBinding

The DataBinding to be removed from the DataBindingCollection.

Examples

The following code example removes a DataBinding object from the DataBindingCollection collection by using this version of the Remove method and specifying an instance of the DataBinding class, named myDataBinding1.

myDataBindingCollection1->Remove( myDataBinding1 );
dataBindingOutput8 = String::Concat( "The Count of the collection after DataBinding is removed is  ", myDataBindingCollection1->Count );
WriteToFile( dataBindingOutput8 );
myDataBindingCollection1.Remove(myDataBinding1);
dataBindingOutput8 = String.Concat("The Count of the collection after DataBinding is removed is  ", myDataBindingCollection1.Count);
WriteToFile(dataBindingOutput8);
myDataBindingCollection1.Remove(myDataBinding1)
dataBindingOutput8 = [String].Concat("The Count of the collection after DataBinding is removed is  ", myDataBindingCollection1.Count)
WriteToFile(dataBindingOutput8)

Applies to

Remove(String, Boolean)

Removes the DataBinding object, associated with the specified property name, from the DataBindingCollection collection and controls whether to add the binding to the RemovedBindings list.

public:
 void Remove(System::String ^ propertyName, bool addToRemovedList);
public void Remove (string propertyName, bool addToRemovedList);
member this.Remove : string * bool -> unit
Public Sub Remove (propertyName As String, addToRemovedList As Boolean)

Parameters

propertyName
String

The property associated with the DataBinding to be removed.

addToRemovedList
Boolean

A Boolean value that indicates whether to add the property name to the RemovedBindings list. true indicates that the propertyName parameter will be added to the RemovedBindings property, and false indicates that propertyName will not be added to the RemovedBindings property.

Applies to