DependentHandle.Target Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor