Επεξεργασία

Κοινή χρήση μέσω


ActivityCodeDomSerializer.Serialize Method

Definition

Serializes the specified object into a CodeDOM object.

public:
 override System::Object ^ Serialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ obj);
public override object Serialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object obj);
override this.Serialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj -> obj
Public Overrides Function Serialize (manager As IDesignerSerializationManager, obj As Object) As Object

Parameters

manager
IDesignerSerializationManager

The serialization manager to use during the serialization process.

obj
Object

An Object that derives from Activity.

Returns

A CodeDOM object representing the object that has been serialized.

Exceptions

manager or obj contains a null reference (Nothing in Visual Basic).

obj cannot be converted to an Activity.

Remarks

Serialize returns a null reference (Nothing) if the activity it attempts to serialize is the child activity of a custom composite activity.

Applies to