LiveWatchEngineExtensionsLookupChildRecursively Method

Returns a pinned variable object for a field in a structure, supporting nested structures if needed.

Definition

Namespace: VisualGDBExtensibility.LiveWatch
Assembly: VisualGDBExtensibility (in VisualGDBExtensibility.dll) Version: 5.6.109.1 (5.6.109.4849)
C#
public static IPinnedVariable LookupChildRecursively(
	this IPinnedVariable variable,
	string subexpression,
	bool throwIfNotFound = false
)

Parameters

variable  IPinnedVariable
The initial variable representing a structure
subexpression  String
Either the name of a single field (e.g. size) or a dot-separated expression for nested structures (e.g. size.width)
throwIfNotFound  Boolean  (Optional)
Specifies the behavior when the child with the given name is not found. If true the method will throw an exception. If false, it will return null.

Return Value

IPinnedVariable
The pinned variable object corresponding to the given subexpression.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPinnedVariable. 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).

Exceptions

See Also