Returns a SerializationInfo completely populated with all the data needed to serailze the target object.
[Visual Basic] Overridable Public Sub GetObjectData( _ ByVal info As SerializationInfo, _ ByVal context As StreamingContext _ ) [C#] public virtual void GetObjectData( SerializationInfo info, StreamingContext context ); [C++] public: virtual void GetObjectData( SerializationInfo* info, StreamingContext context ); [JScript] public function GetObjectData( info : SerializationInfo, context : StreamingContext );
A SerializationInfo with all the data needed to serialize the object.
Exception Type | Condition |
---|---|
ArgumentNullException | info is a null reference (in Visual Basic Nothing). |
The GetObjectData method is used to retrieve the data from the source and/or destination, which SerializationInfo holds together while the data is being serialized/deserialized.
WeakReference Class | WeakReference Members | System Namespace | Object | StreamingContext