Share via


IProvideValueTarget.TargetProperty Property

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

Gets an identifier for the target property being reported.

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

Syntax

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

Property Value

Type: System.Object
An identifier for the target property being reported.

Remarks

The value can be null; see Remarks in IProvideValueTarget.

The identifiers returned are not always PropertyInfo, although PropertyInfo is the most common expected return type. Specific variations are as follows:

  1. An attached property does not necessarily have a CLR property associated with it. Attached properties return the MethodInfo of their Set accessor helper method, implemented using the pattern XAML processors expect. For more information on the attached property accessor pattern, see Custom Attached Properties.

  2. Custom markup extensions can be applied to events, for scenarios such as returning a delegate or handler. For events, the identifier is EventInfo.

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.