CommonServiceBehaviorElement.CanAdd Method (BehaviorExtensionElement)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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