DataBindingCollection.Remove 方法

定义

DataBinding 集合中删除 DataBindingCollection 对象。

重载

Remove(String)

DataBindingCollection 集合中移除与指定属性名称相关联的 DataBinding 对象,并将其添加到 RemovedBindings 集合中。

Remove(DataBinding)

DataBindingCollection 集合中移除指定的 DataBinding 对象,并将其添加到 RemovedBindings 集合中。

Remove(String, Boolean)

DataBindingCollection 集合中移除与指定属性名称相关联的 DataBinding 对象,并控制是否将绑定添加到 RemovedBindings 列表中。

Remove(String)

DataBindingCollection 集合中移除与指定属性名称相关联的 DataBinding 对象,并将其添加到 RemovedBindings 集合中。

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

参数

propertyName
String

与要移除的 DataBinding 相关联的属性名称。

适用于

Remove(DataBinding)

DataBindingCollection 集合中移除指定的 DataBinding 对象,并将其添加到 RemovedBindings 集合中。

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)

参数

binding
DataBinding

要从 DataBindingCollection 中移除的 DataBinding

示例

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)

适用于

Remove(String, Boolean)

DataBindingCollection 集合中移除与指定属性名称相关联的 DataBinding 对象,并控制是否将绑定添加到 RemovedBindings 列表中。

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)

参数

propertyName
String

与要移除的 DataBinding 相关联的属性。

addToRemovedList
Boolean

一个布尔值,指示是否将该属性名称添加到 RemovedBindings 列表中。 true 指示 propertyName 参数将添加到 RemovedBindings 属性中,false 指示 propertyName 将不会添加到 RemovedBindings 属性中。

适用于