Platform::WeakReference Class

Represents a weak reference to an instance of a ref class.

class WeakReference

Member

Description

WeakReference::WeakReference Constructor (C++/CX)

Initializes a new instance of the WeakReference class.

Member

Description

WeakReference::Resolve Method (Platform namespace)

Returns a handle to the underlying ref class, or nullptr if the object no longer exists.

Member

Description

WeakReference::operator=

Assigns a new value to the WeakReference object.

The WeakReference class itself is not a ref class and therefore it does not inherit from Platform::Object^ and cannot be used in the signature of a public method.

Show:
© 2014 Microsoft