ToolboxItemContainer::GetObjectData Method (SerializationInfo^, StreamingContext)

 

Saves the serialization state for the object.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing.Design (in System.Drawing.Design.dll)

protected:
[SecurityCriticalAttribute]
virtual void GetObjectData(
	SerializationInfo^ info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization::SerializationInfo^

The serialization information passed in by the serializer when serializing this object.

context
Type: System.Runtime.Serialization::StreamingContext

The streaming context passed in by the serializer when serializing this object.

Notes to Inheritors:

Generally, it is not necessary to override the serialization mechanism for a ToolboxItemContainer class. Instead, override the ToolboxData property and add your own data to the data object. The GetObjectData method internally uses the ToolboxData property to create the serialization info. Override GetObjectData only if you want to save private information about the ToolboxItemContainer that should not be saved as part of the public data object.

.NET Framework
Available since 2.0
Return to top
Show: