Click or drag to resize

imbGraphExtensionsgetParentsViaExtension Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets all parents. Prevents loop inherence.

Namespace:  imbSCI.Data
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static List<IObjectWithPath> getParentsViaExtension(
	this IObjectWithPath source,
	int parentDepthLimit = 2000
)
Request Example View Source

Parameters

source
Type: imbSCI.Data.interfacesIObjectWithPath
The object to start from. Excluded from result
parentDepthLimit (Optional)
Type: SystemInt32
The parent depth limit.

Return Value

Type: ListIObjectWithPath
List of all parents until root object or until looped node. Order of objects in the result is from source to root

Usage Note

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