WorkflowMarkupSerializer.ClearChildren 方法

定义

从指定对象中移除所有子对象。

protected public:
 virtual void ClearChildren(System::Workflow::ComponentModel::Serialization::WorkflowMarkupSerializationManager ^ serializationManager, System::Object ^ obj);
protected internal virtual void ClearChildren (System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager serializationManager, object obj);
abstract member ClearChildren : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> unit
override this.ClearChildren : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> unit
Protected Friend Overridable Sub ClearChildren (serializationManager As WorkflowMarkupSerializationManager, obj As Object)

参数

serializationManager
WorkflowMarkupSerializationManager

支持此操作的 WorkflowMarkupSerializationManager

obj
Object

从中移除所有子对象的 Object

例外

serializationManager 为空引用(在 Visual Basic 中为 Nothing)。

- 或 -

obj 为空引用 (Nothing)。

注解

除了异常行为,ClearChildren 不提供任何默认行为。 必须重写 WorkflowMarkupSerializer,以便在继承序列化程序中为此方法提供逻辑。

适用于