ValueExtensions.TryResolveBy Method (Value, Queue.String., Value.)

Resolves the current Value by the specified Queue.T. of elements. A return value indicates whether resolving succeeded.

Namespace:  TcHmiSrv.Core.Extensions
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public static bool TryResolveBy(
    this Value value,
    Queue<string> elements,
    out Value result
)

Parameters

value

Type: TcHmiSrv.Core.Value
The Value to resolve.

elements

Type: System.Collections.Generic.Queue.String.
A Queue.T. containing the elements by which value should be resolved.

result

Type: TcHmiSrv.Core.Value.
When this method returns, contains the sub-Value of value resolved by elements, if resolving succeeded, or the last Value at which resolving succeeded if resolving all elements failed.

Return Value

Type: Boolean
true if resolving value by elements succeeded; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Value. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Reference

ValueExtensions Class

TryResolveBy Overload

TcHmiSrv.Core.Extensions Namespace