共用方式為


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類別中實作,以支援某些開發環境所提供的工具箱資料庫中的持續性。

適用於