TreeNode.Serialize(SerializationInfo, StreamingContext) TreeNode.Serialize(SerializationInfo, StreamingContext) TreeNode.Serialize(SerializationInfo, StreamingContext) TreeNode.Serialize(SerializationInfo, StreamingContext) Method

定義

TreeNode 的狀態儲存至指定的 SerializationInfoSaves the state of the TreeNode to the specified SerializationInfo.

protected:
 virtual void Serialize(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext context);
protected virtual void Serialize (System.Runtime.Serialization.SerializationInfo si, 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 (si As SerializationInfo, context As StreamingContext)

參數

context
StreamingContext StreamingContext StreamingContext StreamingContext

StreamingContext,表示在序列化 (Serialization) 期間資料流的狀態。The StreamingContext that indicates the state of the stream during serialization

安全性

SecurityPermission
適用于序列化服務。for serialization services. 相關聯的列舉:SerializationFormatterAssociated enumeration: SerializationFormatter

適用於