set_Target()

WeakReference<>::set_Target(const SmartPtr<Object>&) method

Sets the object (the target) referenced by the current WeakReference object.

void System::WeakReference<>::set_Target(const SmartPtr<Object> &data)

Arguments

ParameterTypeDescription
dataconst SmartPtr<Object>&Object to set.

See Also