Редагувати

Поділитися через


DependentHandle.Target Property

Definition

Gets or sets the target object instance for the current handle. The target can only be set to a null value once the DependentHandle instance has been created. Doing so will cause Dependent to start returning null as well, and to become eligible for collection even if the previous target is still alive.

public:
 property System::Object ^ Target { System::Object ^ get(); void set(System::Object ^ value); };
public object? Target { get; set; }
member this.Target : obj with get, set
Public Property Target As Object

Property Value

The target object instance for the current handle.

Exceptions

IsAllocated is false or the input value is not null.

Remarks

This property is thread-safe.

Applies to