WeakReference<T>::GetObjectData Method (SerializationInfo^, StreamingContext)

.NET Framework (current version)
 

Populates a SerializationInfo object with all the data necessary to serialize the current WeakReference<T> object.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

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

Parameters

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

An object that holds all the data necessary to serialize or deserialize the current WeakReference<T> object.

context
Type: System.Runtime.Serialization::StreamingContext

The location where serialized data is stored and retrieved.

Exception Condition
ArgumentNullException

info is null.

.NET Framework
Available since 4.5
Return to top
Show: