DataBindingCollection.Remove Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a DataBinding object from the DataBindingCollection collection.
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. |
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
.NET Framework 4.8.1 i druge verzije
Proizvod | Verzije |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
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
.NET Framework 4.8.1 i druge verzije
Proizvod | Verzije |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
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
.NET Framework 4.8.1 i druge verzije
Proizvod | Verzije |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: