.NET Framework Class Library for Silverlight
PropertyPath Constructor (String, array<Object>[]()[])

Initializes a new instance of the PropertyPath class.

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

Visual Basic (Declaration)
Public Sub New ( _
    path As String, _
    ParamArray pathParameters As Object() _
)
Visual Basic (Usage)
Dim path As String
Dim pathParameters As Object()

Dim instance As New PropertyPath(path, pathParameters)
C#
public PropertyPath(
    string path,
    params Object[] pathParameters
)

Parameters

path
Type: System..::.String
The path string for this PropertyPath.
pathParameters
Type: array<System..::.Object>[]()[]
Do not use. See Remarks.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException

Provided an array of length greater than zero for pathParameters.

Remarks

In Silverlight 3, you typically construct a PropertyPath based on a string, regardless of intended usage. See Property Path Syntax for a guide to constructing a PropertyPath based on a string, with separate syntax guidance for each usage.

The WPF implementation of PropertyPath can use a different convention for the meaning of the path and pathParameters parameters, which treats path as a token string and pathParameters as an array of various types that describe properties in the .NET Framework type system. This convention supported advanced timelines. Silverlight does not support this alternate convention. Always use the path parameter to specify a path string as documented in the topic Property Path Syntax, and do not specify pathParameters. Alternatively, use the PropertyPath(Object) signature. If left unspecified, the params keyword for the pathParameters parameter enables the creation of a zero-length object array implicitly, and the zero-length array is the only expected value for pathParameters in Silverlight.

Platforms

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

See Also

Reference

Other Resources

Tags :


Page view tracker