ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.CanAdd 方法

定义

将一个新的行为元素添加到此节,并返回一个指示操作是否成功的值。

public:
 virtual bool CanAdd(TServiceModelExtensionElement element);
public virtual bool CanAdd (TServiceModelExtensionElement element);
abstract member CanAdd : 'ServiceModelExtensionElement -> bool
override this.CanAdd : 'ServiceModelExtensionElement -> bool
Public Overridable Function CanAdd (element As TServiceModelExtensionElement) As Boolean

参数

element
TServiceModelExtensionElement

一个要添加的 ServiceModelExtensionElement

返回

如果操作成功,则为 true;否则为 false

例外

elementnull

适用于