BindingCollection.Remove Method

Definition

Overloads

Remove(Binding)

Removes the specified binding from the binding collection.

Remove(Binding, Boolean)

Remove(Binding)

Removes the specified binding from the binding collection.

public:
 void Remove(Microsoft::Web::Administration::Binding ^ element);
public void Remove (Microsoft.Web.Administration.Binding element);
override this.Remove : Microsoft.Web.Administration.Binding -> unit
Public Sub Remove (element As Binding)

Parameters

element
Binding

The binding to remove.

Remarks

When a binding element is removed from the BindingCollection object and updated with the Update method, it is deleted in the ApplicationHost.config file.

After a binding has been deleted and the ApplicationHost.config file has been updated, the deleted binding will no longer appear in the Site Bindings dialog box.

Applies to

Remove(Binding, Boolean)

public:
 void Remove(Microsoft::Web::Administration::Binding ^ element, bool removeConfigOnly);
public void Remove (Microsoft.Web.Administration.Binding element, bool removeConfigOnly);
override this.Remove : Microsoft.Web.Administration.Binding * bool -> unit
Public Sub Remove (element As Binding, removeConfigOnly As Boolean)

Parameters

element
Binding
removeConfigOnly
Boolean

Applies to