GetObjectData Method
Collapse the table of content
Expand the table of content

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)

[SecurityCriticalAttribute]
public void GetObjectData(
	SerializationInfo info,
	StreamingContext context
)

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:
© 2016 Microsoft