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.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om