PropertyPath Constructor (String, array<Object>[]()[]) Home
This page is specific to:Microsoft Version:3.03.5Silverlight 34.0
.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

'Usage

Dim path As String
Dim pathParameters As Object()

Dim instance As New PropertyPath(path, pathParameters)

'Declaration

Public Sub New ( _
    path As String, _
    ParamArray pathParameters As Object() _
)

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

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View