CommonServiceBehaviorElement.CanAdd Method (BehaviorExtensionElement)


Adds a new behavior element to this section and returns a value indicating if the operation is successful.

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

public override bool CanAdd(
	BehaviorExtensionElement element

Return Value

Type: System.Boolean

true if the operation is successful; otherwise, false.

Exception Condition

element is null.


The type associated with element is invalid.

.NET Framework
Available since 3.0
Return to top