Click or drag to resize
ChildContextualCreatorExtensionsInChildWithinTScope, TChild Method (IChildContextualCreatorTScope, TChild, ActionTChild)
Creates a new child contextual from parent with the same access scope as parent and executes content with the new created child contextual. After content has finished, the child contextual is disposed.

Namespace: AccessFlow
Assembly: AccessFlow (in AccessFlow.dll) Version: 1.0.0.2 (1.0.0.2)
Syntax
public static void InChildWithin<TScope, TChild>(
	this IChildContextualCreator<TScope, TChild> parent,
	Action<TChild> content
)
where TChild : IDisposable

Parameters

parent
Type: AccessFlowIChildContextualCreatorTScope, TChild
The IChildContextualCreatorTScope, TChild to create the child contextual, typically another access contextual.
content
Type: SystemActionTChild
The function operating on the new created child contextual.

Type Parameters

TScope
The type of the access scope.
TChild
The type of the child contextual.

Usage Note

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