ProtocolCollection.Remove Method

Definition

Removes a ProtocolElement object from the collection.

Overloads

Remove(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Removes the ProtocolElement object that has the specified key from the collection.

Remove(ProtocolElement)

This API supports the product infrastructure and is not intended to be used directly from your code.

Removes the specified ProtocolElement object from the collection.

Remarks

Remove is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.

Remove(String)

Removes the ProtocolElement object that has the specified key from the collection.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public void Remove (string name);

Parameters

name
String

The key of the ProtocolElement object to remove.

Remarks

Remove is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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

Remove(ProtocolElement)

Removes the specified ProtocolElement object from the collection.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public void Remove (System.Web.Configuration.ProtocolElement protocolElement);

Parameters

protocolElement
ProtocolElement

The element to remove.

Remarks

Remove is introduced in the .NET Framework 3.5. For more information, see Versions and Dependencies.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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