共用方式為


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

傳回

Boolean

如果作業成功,則為 true,否則為 false

例外狀況

elementnull

適用於