TreeNode::Serialize Method (SerializationInfo^, StreamingContext)

 

Saves the state of the TreeNode to the specified SerializationInfo.

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

protected:
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::SerializationFormatter)]
[SecurityPermissionAttribute(SecurityAction::InheritanceDemand, 
	Flags = SecurityPermissionFlag::SerializationFormatter)]
virtual void Serialize(
	SerializationInfo^ si,
	StreamingContext context
)

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: