WeakReference<'T>.GetObjectData Method (SerializationInfo, StreamingContext)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

[<SecurityCriticalAttribute>]
abstract GetObjectData : 
        info:SerializationInfo *
        context:StreamingContext -> unit
[<SecurityCriticalAttribute>]
override GetObjectData : 
        info:SerializationInfo *
        context:StreamingContext -> unit

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: