TreeNode.Serialize Method (SerializationInfo, StreamingContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Saves the state of the TreeNode to the specified SerializationInfo.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.SerializationFormatter)>
<SecurityPermissionAttribute(SecurityAction.InheritanceDemand,
	Flags := SecurityPermissionFlag.SerializationFormatter)>
Protected Overridable Sub Serialize (
	si As SerializationInfo,
	context As StreamingContext
)

Parameters

si
Type: System.Runtime.Serialization.SerializationInfo

The SerializationInfo that describes the TreeNode.

context
Type: System.Runtime.Serialization.StreamingContext

The StreamingContext that indicates the state of the stream during serialization

SecurityPermission

for serialization services. Associated enumeration: SerializationFormatter

.NET Framework
Available since 2.0
Return to top
Show: