IProvideValueTarget.TargetObject Property

Definition

Gets the target object being reported.

public:
 property System::Object ^ TargetObject { System::Object ^ get(); };
public object TargetObject { get; }
member this.TargetObject : obj
Public ReadOnly Property TargetObject As Object

Property Value

The target object being reported.

Remarks

The value returned by TargetObject is the actual reference, not a type system identifier or other identifier. The value can also be null; see IProvideValueTarget.

Important

When using the service, it is particularly important not to modify the object referenced by the TargetObject property, or other objects referenced by that object as properties that are not specifically the value-conversion case you are handling. For WPF specifically, changing the target object could cause unexpected changes that would invalidate the WPF property system.

Applies to

See also