ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>::Remove Method (TServiceModelExtensionElement)

 

Removes the specified element from the collection. This method cannot be inherited.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
virtual bool Remove(
	TServiceModelExtensionElement element
) sealed

Parameters

element
Type: TServiceModelExtensionElement

The element to be removed from the collection.

Return Value

Type: System::Boolean

true if the element is successfully found and removed; otherwise, false. This method returns false if the element is not found in the collection.

Exception Condition
ArgumentNullException

element is null.

.NET Framework
Available since 3.0
Return to top
Show: