The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
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.
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
Available since 4.5
Show: