ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>::CanAdd Method (TServiceModelExtensionElement)

 

Adds a new behavior element to this section and returns a value that indicates whether the operation is successful.

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

public:
virtual bool CanAdd(
	TServiceModelExtensionElement element
)

Parameters

element
Type: TServiceModelExtensionElement

A ServiceModelExtensionElement to be added.

Return Value

Type: System::Boolean

true if the operation is successful; otherwise, false.

Exception Condition
ArgumentNullException

element is null.

.NET Framework
Available since 3.0
Return to top
Show: