ObjectPath.TryResolvePath(Object, String, List<Object>, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given an root object and property path, resolve to a constant if eval = true or a constant path otherwise.
conversation[user.name][user.age] => ['conversation', 'joe', 32].
public static bool TryResolvePath (object obj, string propertyPath, out System.Collections.Generic.List<object> segments, bool eval = false);
static member TryResolvePath : obj * string * List * bool -> bool
Public Shared Function TryResolvePath (obj As Object, propertyPath As String, ByRef segments As List(Of Object), Optional eval As Boolean = false) As Boolean
Parameters
- obj
- Object
root object.
- propertyPath
- String
property path to resolve.
- eval
- Boolean
True to evaluate resulting segments.
Returns
True if it was able to resolve all nested references.