System::WeakReference< T >::WeakReference 方法

WeakReference< T >::WeakReference() method

默认构造函数。

System::WeakReference<T>::WeakReference()

另见

WeakReference< T >::WeakReference(const SmartPtr<T>&) method

初始化一个新的 WeakReference 类实例,引用指定的对象。

System::WeakReference<T>::WeakReference(const SmartPtr<T> &data)
参数类型描述
dataconst SmartPtr<T>&用于存储的 Object

另见

WeakReference< T >::WeakReference(const SmartPtr<T>&, bool) method

初始化一个新的 WeakReference 类实例,引用指定的对象。

System::WeakReference<T>::WeakReference(const SmartPtr<T> &data, bool trackResurrection)
参数类型描述
dataconst SmartPtr<T>&用于存储的 Object
trackResurrectionbool已忽略。

另见

WeakReference< T >::WeakReference(std::nullptr_t) method

使用 nullptr 的构造函数。

System::WeakReference<T>::WeakReference(std::nullptr_t)

另见