Breyta

Deila með


ToolboxItem.Serialize(SerializationInfo, StreamingContext) Method

Definition

Saves the state of the toolbox item to the specified serialization information object.

protected:
 virtual void Serialize(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected virtual void Serialize (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member Serialize : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.Serialize : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Protected Overridable Sub Serialize (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo to save to.

context
StreamingContext

A StreamingContext that indicates the stream characteristics.

Notes to Inheritors

The Serialize(SerializationInfo, StreamingContext) and Deserialize(SerializationInfo, StreamingContext) methods must be implemented in classes that derive from the ToolboxItem class in order to support persistence in the toolbox database provided by some development environments.

Applies to