ToolboxItem.Serialize(SerializationInfo, StreamingContext) 方法

定义

将此工具箱项的状态保存到指定的序列化信息对象中。

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)

参数

info
SerializationInfo

要保存到的 SerializationInfo

context
StreamingContext

指示流特征的 StreamingContext

继承者说明

Serialize(SerializationInfo, StreamingContext)Deserialize(SerializationInfo, StreamingContext) 方法必须在派生自 ToolboxItem 类的类中实现,以支持某些开发环境提供的工具箱数据库中的持久性。

适用于