ImageListStreamer::GetObjectData Method (SerializationInfo^, StreamingContext)

 

Populates a SerializationInfo with the data needed to serialize the target object.

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

public:
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::SerializationFormatter)]
virtual void GetObjectData(
	SerializationInfo^ si,
	StreamingContext context
) sealed

Parameters

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

The SerializationInfo to populate with data.

context
Type: System.Runtime.Serialization::StreamingContext

The StreamingContext that is the destination for this serialization.

Exception Condition
InvalidOperationException

The SerializationInfo cannot be populated with data because no data exists, or it is not in the correct format.

For more information and a code example, see System.Runtime.Serialization::ISerializable.

SecurityPermission

for providing serialization services. Associated enumeration: SerializationFormatter

.NET Framework
Available since 1.1
Return to top
Show: