DataBindingCollection.Remove Metoda

Definice

Odebere DataBinding objekt z DataBindingCollection kolekce.

Přetížení

Remove(String)

Odebere DataBinding objekt přidružený k zadanému názvu vlastnosti z DataBindingCollection kolekce a přidá ho RemovedBindings do kolekce.

Remove(DataBinding)

Odebere zadaný DataBinding objekt z DataBindingCollection kolekce a přidá ho RemovedBindings do kolekce.

Remove(String, Boolean)

Odebere DataBinding objekt přidružený k zadanému názvu vlastnosti z DataBindingCollection kolekce a ovládacích prvků, zda chcete přidat vazbu do RemovedBindings seznamu.

Remove(String)

Odebere DataBinding objekt přidružený k zadanému názvu vlastnosti z DataBindingCollection kolekce a přidá ho RemovedBindings do kolekce.

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

Parametry

propertyName
String

Název vlastnosti přidružené k DataBinding odebrání.

Platí pro

Remove(DataBinding)

Odebere zadaný DataBinding objekt z DataBindingCollection kolekce a přidá ho RemovedBindings do kolekce.

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)

Parametry

binding
DataBinding

Odebrané DataBinding ze DataBindingCollectionsouboru .

Příklady

Následující příklad kódu odebere DataBinding objekt z DataBindingCollection kolekce pomocí této verze Remove metody a určuje instanci DataBinding třídy s názvem 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)

Platí pro

Remove(String, Boolean)

Odebere DataBinding objekt přidružený k zadanému názvu vlastnosti z DataBindingCollection kolekce a ovládacích prvků, zda chcete přidat vazbu do RemovedBindings seznamu.

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)

Parametry

propertyName
String

Vlastnost přidružená DataBinding k odebrání.

addToRemovedList
Boolean

Logická hodnota, která označuje, zda se má přidat název vlastnosti do RemovedBindings seznamu. true označuje, že propertyName parametr bude přidán do RemovedBindings vlastnosti a false označuje, že propertyName se do RemovedBindings vlastnosti nepřidá.

Platí pro