This documentation is archived and is not being maintained.

WeakReference Constructor

.NET Framework 1.1

Initializes a new instance of the WeakReference class.

Overload List

Initializes a new instance of the WeakReference class, referencing the specified object.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Object)
[C#] public WeakReference(object);
[C++] public: WeakReference(Object*);
[JScript] public function WeakReference(Object);

Initializes a new instance of the WeakReference class, referencing the specified object and using the specified resurrection tracking.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Object, Boolean)
[C#] public WeakReference(object, bool);
[C++] public: WeakReference(Object*, bool);
[JScript] public function WeakReference(Object, Boolean);

Initializes a new instance of the WeakReference class, using deserialized data from the specified serialization and stream objects.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected WeakReference(SerializationInfo, StreamingContext);
[C++] protected: WeakReference(SerializationInfo*, StreamingContext);
[JScript] protected function WeakReference(SerializationInfo, StreamingContext);

See Also

WeakReference Class | WeakReference Members | System Namespace

Show: