PropertyPath Constructor (String, Object[])


Initializes a new instance of the PropertyPath class, with the provided pathing token string and parameters.

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

public PropertyPath(
	string path,
	params object[] pathParameters


Type: System.String

A string that specifies the Path, in a tokenized format.

Type: System.Object[]

An array of objects that sets the PathParameters.

This signature is generally only used for target-mode PropertyPath usages with complex paths.

This constructor supports params for the pathParameters constructor argument. Therefore you can specify the contents of pathParameters as a series of comma-separated constructor arguments that populate the array, rather than needing to dimension an array and then populate it with the pathParameters items. Each item you specify must be one of the following types: DependencyProperty, PropertyInfo, PropertyDescriptor.

For more information on the requirements of the parameters, see Path and PathParameters.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top