Method GetObjectData
GetObjectData(SerializationInfo, StreamingContext)
Populates the SerializationInfo class with the data needed to serialize the target object.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | Stores all the data needed to serialize or deserialize an object. |
System. |
context | Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. |