AggregatableExtensions.VisitSelfAndDescendants Method
Executes a ChildVisitor for the a specified parent object and all its descendants.

Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public static bool VisitSelfAndDescendants(
	this IAggregatable parent,
	DescendantVisitor visitor,
	ChildVisitorOptions options = ChildVisitorOptions.None,
	Object state = null
)

Parameters

parent
Type: PostSharp.Patterns.Model.IAggregatable
The parent object.
visitor
Type: PostSharp.Patterns.Model.DescendantVisitor
The action to execute.
options (Optional)
Type: PostSharp.Patterns.Model.ChildVisitorOptions
Options.
state (Optional)
Type: System.Object

Return Value

Type: Boolean

Usage Note

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