ImageListStreamer.GetObjectData 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.

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)

[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public void GetObjectData(
	SerializationInfo si,
	StreamingContext context
)

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: