Compartilhar via


IProvideValueTarget.TargetObject Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the target object being reported.

Namespace:  System.Windows.Markup
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
ReadOnly Property TargetObject As Object
Object TargetObject { get; }

Property Value

Type: System.Object
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 Remarks in IProvideValueTarget.

Caution noteCaution:

When using the service, your code must not modify the object referenced by the TargetObject property, or other objects referenced by that object. Changes to the target could cause unexpected changes or invalidatations in the Silverlight property system.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.